Skip to content

Commit

Permalink
Link in header
Browse files Browse the repository at this point in the history
  • Loading branch information
mvl22 committed Sep 29, 2019
1 parent f38d01d commit 6e053d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
%li= link_to t(".sign_up"), new_user_registration_path
- if permitted_to? :create, :devise_sessions
%li= link_to t(".sign_in"), new_user_session_path
#main-nav
.survey
%p{ style: "position: absolute; right: 0; top: 45px;"}
%a{ href: "https://blog.cyclescape.org/survey/", style: "padding: 5px 10px; background-color: yellow; font-weight: bold;"}
Survey
#main-nav

This comment has been minimized.

Copy link
@nikolai-b

nikolai-b Sep 29, 2019

Contributor

haml is very white space sensitive so this isn't valid and causes a syntax error.

This comment has been minimized.

Copy link
@mvl22

mvl22 Sep 29, 2019

Author Member

Ah sorry, I did check this, being aware of that, but sounds like there was still a problem.

Would you mind resolving this, and pushing to live?

%nav.wrapper
%ul#navigation(role="navigation")
%li#menu-dashboard= link_to t(".dashboard", application_name: @site_config.application_name), dashboard_path, title: t(".dashboard_tooltip")
Expand Down

0 comments on commit 6e053d1

Please sign in to comment.