mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 07:26:22 +02:00
Remove registrant portal legacy code
This commit is contained in:
parent
47a93b200a
commit
8b256b0b74
6 changed files with 0 additions and 180 deletions
|
@ -1,11 +0,0 @@
|
||||||
//= require 'registrant/registrant-bootstrap'
|
|
||||||
//= require 'jquery-ui/datepicker'
|
|
||||||
//= require 'select2'
|
|
||||||
//= require 'select2-bootstrap'
|
|
||||||
@import shared/fonts
|
|
||||||
@import shared/general
|
|
||||||
@import forms
|
|
||||||
@import typeaheadjs
|
|
||||||
@import selectize
|
|
||||||
@import selectize.bootstrap3
|
|
||||||
@import registrant/registrant
|
|
|
@ -1,19 +0,0 @@
|
||||||
$brand-primary: #7EA82F
|
|
||||||
$navbar-default-bg: #7EA82F
|
|
||||||
$navbar-default-brand-color: #fff
|
|
||||||
$navbar-default-link-color: #fff
|
|
||||||
$border-radius-base: 2px
|
|
||||||
$body-bg: #F8F8F8
|
|
||||||
$container-large-desktop: 1040px
|
|
||||||
$font-family-sans-serif: 'EtelkaLightProRegular', Arial, Helvetica, sans-serif
|
|
||||||
$font-family-serif: 'EtelkaLightProBold', Georgia, "Times New Roman", Times, serif
|
|
||||||
$font-size-h1: 26px
|
|
||||||
$navbar-default-link-active-color: #333
|
|
||||||
|
|
||||||
@import 'bootstrap-sprockets'
|
|
||||||
@import 'bootstrap'
|
|
||||||
@import 'shared/general-bootstrap'
|
|
||||||
|
|
||||||
// Support rails error element
|
|
||||||
.field_with_errors
|
|
||||||
@extend .has-error
|
|
|
@ -1,44 +0,0 @@
|
||||||
html
|
|
||||||
position: relative
|
|
||||||
min-height: 100%
|
|
||||||
overflow-y: scroll
|
|
||||||
|
|
||||||
body
|
|
||||||
padding-bottom: 130px
|
|
||||||
|
|
||||||
body > .container
|
|
||||||
height: 100%
|
|
||||||
background: #fff
|
|
||||||
padding: 60px 30px 30px 30px
|
|
||||||
|
|
||||||
h1, h2, h3, h4
|
|
||||||
margin-bottom: 0px !important
|
|
||||||
|
|
||||||
// Commented out, default 20px is needed on forms
|
|
||||||
// hr
|
|
||||||
// margin-top: 10px !important
|
|
||||||
// margin-bottom: 10px !important
|
|
||||||
|
|
||||||
.navbar li
|
|
||||||
font-weight: bold
|
|
||||||
|
|
||||||
.footer
|
|
||||||
position: absolute
|
|
||||||
bottom: 0
|
|
||||||
width: 100%
|
|
||||||
height: 130px
|
|
||||||
background: image_url('bg.jpg')
|
|
||||||
color: white !important
|
|
||||||
background-size: 100%
|
|
||||||
|
|
||||||
.confirmation
|
|
||||||
padding: 40px 0 20px 0
|
|
||||||
.column-keys
|
|
||||||
text-align: right
|
|
||||||
width: 49%
|
|
||||||
float: left
|
|
||||||
.column-values
|
|
||||||
float: right
|
|
||||||
font-weight: bold
|
|
||||||
text-align: left
|
|
||||||
width: 49%
|
|
|
@ -1,6 +0,0 @@
|
||||||
module Registrant::ApplicationHelper
|
|
||||||
def env_style
|
|
||||||
return '' if unstable_env.nil?
|
|
||||||
"background-image: url(#{image_path("registrar/bg-#{unstable_env}.png")});"
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,86 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<%= I18n.locale.to_s %>">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8"/>
|
|
||||||
<meta content="width=device-width, initial-scale=1" name="viewport"/>
|
|
||||||
<% if content_for? :head_title %>
|
|
||||||
<%= yield :head_title %>
|
|
||||||
<% else %>
|
|
||||||
<title>
|
|
||||||
<%= t(:registrant_head_title) %>
|
|
||||||
</title>
|
|
||||||
<% end %>
|
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
<%= stylesheet_link_tag 'registrant-manifest', media: 'all' %>
|
|
||||||
<%= favicon_link_tag 'favicon.ico' %>
|
|
||||||
</head>
|
|
||||||
<body class="<%= body_css_class %>">
|
|
||||||
<!-- Fixed navbar
|
|
||||||
-->
|
|
||||||
<nav class="navbar navbar-default navbar-fixed-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button aria-expanded="false" class="navbar-toggle collapsed" data-target="#navbar" data-toggle="collapse" type="button">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<%= link_to registrant_root_path, class: 'navbar-brand' do %>
|
|
||||||
<%= t(:registrant_head_title) %>
|
|
||||||
<% if unstable_env.present? %>
|
|
||||||
<div class="text-center">
|
|
||||||
<small style="color: #0074B3;">
|
|
||||||
<%= unstable_env %>
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% if current_registrant_user %>
|
|
||||||
<div class="navbar-collapse collapse">
|
|
||||||
<ul class="nav navbar-nav public-nav">
|
|
||||||
<% if can? :view, Depp::Domain %>
|
|
||||||
<% active_class = %w(registrant/domains registrant/check registrant/renew registrant/tranfer).include?(params[:controller]) ? 'active' :nil %>
|
|
||||||
<li class="<%= active_class %>">
|
|
||||||
<%= link_to t(:domains), registrant_domains_path %>
|
|
||||||
</li>
|
|
||||||
<li class="<%= active_class %>">
|
|
||||||
<%= link_to 'WHOIS', 'https://whois.internet.ee' %>
|
|
||||||
</li>
|
|
||||||
<li class="<%= active_class %>">
|
|
||||||
<%= link_to 'Internet.ee', 'https://internet.ee' %>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<% if registrant_user_signed_in? %>
|
|
||||||
<li>
|
|
||||||
<%= link_to t(:log_out, user: current_registrant_user), destroy_registrant_user_session_path, method: :delete %>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
<div class="container">
|
|
||||||
<%= render 'flash_messages' %>
|
|
||||||
<%= yield %>
|
|
||||||
</div>
|
|
||||||
<footer class="footer">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<%= image_tag 'eis-logo-et.png' %>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 text-right">
|
|
||||||
Version
|
|
||||||
<%= current_commit_link %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
<%= javascript_include_tag 'registrant-manifest', async: true %>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,14 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class ApplicationHelperTest < ActionView::TestCase
|
|
||||||
def test_env_style_when_pic_present
|
|
||||||
assert_dom_equal %{<body style={"background-image: url(#{image_path("registrar/bg-#{unstable_env}.png")});"}>},
|
|
||||||
%{<body style={"#{env_style}"}>}
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_env_style_return_nil
|
|
||||||
env_style = ''
|
|
||||||
assert_dom_equal %{<body style=''>},
|
|
||||||
%{<body style={"#{env_style}"}>}
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Add table
Add a link
Reference in a new issue