Skip to content

Commit

Permalink
added >> to 'add research note' button (#2195)
Browse files Browse the repository at this point in the history
* Add &raquo to line 7 for button

* Attempt to fix failing tests

* Fix test failures
  • Loading branch information
shannonnolan17 authored and jywarren committed Feb 2, 2018
1 parent f04ae7e commit 7f111d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/sidebar/_related.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div id="sidebar" class="hidden-xs hidden-sm">

<a style="margin-bottom:6px;white-space: normal;" rel="tooltip" title="<%= t('sidebar._related.share_your_work') %>" data-placement="bottom" href="/post" class="btn btn-primary btn-lg btn-block hidden-sm"><i class="fa fa-pencil fa fa-white"></i> <%= t('sidebar._related.write_research_note') %></a>
<a style="margin-bottom:6px;white-space: normal;" rel="tooltip" title="<%= t('sidebar._related.share_your_work') %>" data-placement="bottom" href="/post" class="btn btn-primary btn-lg btn-block hidden-sm write-research-note"><i class="fa fa-pencil fa fa-white"></i> <%= t('sidebar._related.write_research_note') %> &raquo;</a>
<a style="white-space: normal;" rel="tooltip" title="Post <% if @tagnames %>about <%= (@tagnames.uniq.delete_if{|x| x.match(":") }).join(',') %><% else %>research<% end %>" data-placement="bottom" href="/post<%= '?template=question&tags=question:general,'+(@tagnames.uniq.delete_if{|x| x.match(":") }).join(',') if @tagnames %><% if params[:controller] == 'notes' && params[:action] == 'show' %>,response:<%= @node.id %><% end %>" class="btn btn-primary btn-lg btn-block"><i class="fa fa-pencil fa fa-white"></i> <%= t('sidebar._related.ask_a_question') %> &raquo;</a>

<% cache('related_sidebar-feature', skip_digest: true) do %>
Expand Down
2 changes: 1 addition & 1 deletion test/integration/I18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class I18nTest < ActionDispatch::IntegrationTest
follow_redirect!

get '/wiki/' + nodes(:organizers).title.parameterize
assert_select 'a', I18n.t('sidebar._related.write_research_note')
assert_select 'a.write-research-note', "#{I18n.t('sidebar._related.write_research_note')} &raquo;"
end
end

Expand Down

0 comments on commit 7f111d4

Please sign in to comment.