From 4701b8a37eea0b9c30914ed0061b58ccdf4e60e2 Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 17 Nov 2014 13:19:59 +0100 Subject: [PATCH] added links to the bottom of some pages --- app/assets/stylesheets/base.css.scss | 4 ++++ app/views/inbox/show.html.haml | 4 +++- app/views/static/about.html.haml | 2 ++ app/views/static/index.html.haml | 4 +++- app/views/user/_account.html.haml | 4 +++- app/views/user/_settings_tabs.html.haml | 4 +++- 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/base.css.scss b/app/assets/stylesheets/base.css.scss index 182ed394..a28b6cde 100644 --- a/app/assets/stylesheets/base.css.scss +++ b/app/assets/stylesheets/base.css.scss @@ -7,3 +7,7 @@ body { .j2-page { padding-top: 30px; } + +.centre { + text-align: center; +} \ No newline at end of file diff --git a/app/views/inbox/show.html.haml b/app/views/inbox/show.html.haml index 1cbc47c4..c42b0813 100644 --- a/app/views/inbox/show.html.haml +++ b/app/views/inbox/show.html.haml @@ -17,4 +17,6 @@ - if @inbox.empty? - Nothing to see here. \ No newline at end of file + Nothing to see here. + += render "shared/links" \ No newline at end of file diff --git a/app/views/static/about.html.haml b/app/views/static/about.html.haml index 34a655d2..60ba5912 100644 --- a/app/views/static/about.html.haml +++ b/app/views/static/about.html.haml @@ -23,3 +23,5 @@ .col-sm-4 %h3 Another title. = Faker::Hacker.say_something_smart + += render "shared/links" \ No newline at end of file diff --git a/app/views/static/index.html.haml b/app/views/static/index.html.haml index fad4400a..11a442ad 100644 --- a/app/views/static/index.html.haml +++ b/app/views/static/index.html.haml @@ -4,6 +4,7 @@ = render 'layouts/messages' %p Find me in app/views/static/index.html.haml + = render "shared/links" - else .jumbotron .container @@ -15,4 +16,5 @@ Register now %small Already a member? - = link_to 'Sign in', new_user_session_path \ No newline at end of file + = link_to 'Sign in', new_user_session_path + = render "shared/links" \ No newline at end of file diff --git a/app/views/user/_account.html.haml b/app/views/user/_account.html.haml index 2ba96598..98f2f58c 100644 --- a/app/views/user/_account.html.haml +++ b/app/views/user/_account.html.haml @@ -24,4 +24,6 @@ Unsatisfied? =button_to "Delete my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: "btn btn-danger btn-xs" - = link_to "Back", :back \ No newline at end of file + = link_to "Back", :back + +.visible-xs= render "shared/links" \ No newline at end of file diff --git a/app/views/user/_settings_tabs.html.haml b/app/views/user/_settings_tabs.html.haml index 25e5beea..9db9a477 100644 --- a/app/views/user/_settings_tabs.html.haml +++ b/app/views/user/_settings_tabs.html.haml @@ -3,4 +3,6 @@ .panel-body %ul.nav.nav-pills.nav-stacked = nav_entry "Account", edit_user_registration_path - = nav_entry "Profile", edit_user_profile_path \ No newline at end of file + = nav_entry "Profile", edit_user_profile_path + + .hidden-xs= render "shared/links" \ No newline at end of file