From 3c31ac4771b642d6b54f452e907ebbd4e99e1ee8 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sat, 8 Dec 2018 16:02:49 +0100 Subject: [PATCH] =?UTF-8?q?Se=20tunea=20Redmine=20para=20tener=20una=20p?= =?UTF-8?q?=C3=A1gina=20de=20inicio=20solo=20para=20usuarios=20an=C3=B3nim?= =?UTF-8?q?os?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/account/login.html.erb | 1 + app/views/layouts/base.html.erb | 17 +- app/views/welcome/index.html.erb | 150 + config/locales/en.yml | 37 + config/locales/es.yml | 38 + public/themes/circlepro/font/fontello.eot | Bin 6800 -> 10568 bytes public/themes/circlepro/font/fontello.svg | 20 +- public/themes/circlepro/font/fontello.ttf | Bin 6632 -> 10400 bytes public/themes/circlepro/font/fontello.woff | Bin 4152 -> 6696 bytes public/themes/circlepro/font/fontello.woff2 | Bin 3352 -> 5596 bytes public/themes/circlepro/images/arrow.svg | 6 + public/themes/circlepro/images/bg_banner.jpg | Bin 0 -> 189411 bytes public/themes/circlepro/images/bg_login.jpg | Bin 15233 -> 0 bytes public/themes/circlepro/images/bg_wa.png | Bin 91 -> 0 bytes public/themes/circlepro/images/icon2top.png | Bin 0 -> 3263 bytes public/themes/circlepro/images/pic01.jpg | Bin 0 -> 77466 bytes public/themes/circlepro/images/pic02.jpg | Bin 0 -> 69003 bytes public/themes/circlepro/images/pic03.jpg | Bin 0 -> 52324 bytes .../javascripts/frontpage/breakpoints.min.js | 2 + .../javascripts/frontpage/browser.min.js | 2 + .../frontpage/jquery.scrolly.min.js | 2 + .../circlepro/javascripts/frontpage/main.js | 53 + .../circlepro/javascripts/frontpage/util.js | 587 ++++ public/themes/circlepro/javascripts/theme.js | 10 + .../circlepro/stylesheets/application.css | 172 +- .../circlepro/stylesheets/frontpage.css | 2828 +++++++++++++++++ 26 files changed, 3910 insertions(+), 15 deletions(-) create mode 100644 public/themes/circlepro/images/arrow.svg create mode 100644 public/themes/circlepro/images/bg_banner.jpg delete mode 100644 public/themes/circlepro/images/bg_login.jpg delete mode 100644 public/themes/circlepro/images/bg_wa.png create mode 100644 public/themes/circlepro/images/icon2top.png create mode 100644 public/themes/circlepro/images/pic01.jpg create mode 100644 public/themes/circlepro/images/pic02.jpg create mode 100644 public/themes/circlepro/images/pic03.jpg create mode 100644 public/themes/circlepro/javascripts/frontpage/breakpoints.min.js create mode 100644 public/themes/circlepro/javascripts/frontpage/browser.min.js create mode 100644 public/themes/circlepro/javascripts/frontpage/jquery.scrolly.min.js create mode 100644 public/themes/circlepro/javascripts/frontpage/main.js create mode 100644 public/themes/circlepro/javascripts/frontpage/util.js create mode 100644 public/themes/circlepro/stylesheets/frontpage.css diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index 1440e32..5e48de8 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -1,6 +1,7 @@ <%= call_hook :view_account_login_top %>
+

<%= l(:label_login) %>

<%= form_tag(signin_path, onsubmit: 'return keepAnchorOnSignIn(this);') do %> <%= back_url_hidden_field_tag %> diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index 03aae7b..3b45fee 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -11,13 +11,16 @@ <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', 'responsive', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> +<% is_welcome = !User.current.logged? && current_page?(:controller => 'welcome', :action => 'index') %> +<%= stylesheet_link_tag 'frontpage', :media => 'all' if is_welcome %> + <%= javascript_heads %> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%> - + <%= call_hook :view_layouts_base_body_top %>
@@ -62,7 +65,7 @@ +<%= javascript_tag "$('#scrollup').click(function(){$('html,body').animate({scrollTop:0},600);return false;});" %> +