Skip to content

Commit

Permalink
hide street view when thread has no issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-b committed May 4, 2015
1 parent afe7f65 commit 4bb6bbe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/views/messages/_new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
= link_to "#new-photo-message" do
= t ".photo_message"
%span.nub
%li.map-point
= link_to "#new-street-view-message" do
= t ".street_view_message"
%span.nub
- if @issue
%li.map-point
= link_to "#new-street-view-message" do
= t ".street_view_message"
%span.nub
%li.link
= link_to "#new-link-message" do
= t ".link_message"
Expand All @@ -47,7 +48,8 @@
= f.actions do
= f.action :submit, button_html: { class: "btn-green", disabled: cannot_post?, data: { disable_with: t("formtastic.actions.saving") } }
= render "message/photos/new"
= render "message/street_views/new"
- if @issue
= render "message/street_views/new"
= render "message/links/new"
= render "message/deadlines/new"
= render "message/documents/new"
Expand Down

0 comments on commit 4bb6bbe

Please sign in to comment.