Skip to content

Commit

Permalink
[webui] Fix Show/Hide outdated comments link text
Browse files Browse the repository at this point in the history
The line break in the <a> tag was causing the Javascript check to fail
due to the text having leading whitespaces. It doesn't have these
whitespaces anymore

Fixes #4889
  • Loading branch information
dmarcoux committed Apr 24, 2018
1 parent 78ad39b commit a449374
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/app/views/webui/request/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@
<% @superseding.each do |supersed| %>
<% if supersed.comments.any? %>
<div class="grid_10 box box-shadow alpha omega">
<h2 class="box-header"><a class="supersed_comments_link">
Show outdated comments</a>for superseded <%= link_to "request #{supersed.number}", number: supersed.number %>
<h2 class="box-header">
<a class="supersed_comments_link">Show outdated comments</a>for superseded
<%= link_to "request #{supersed.number}", number: supersed.number %>
</h2>
<div class="superseded_comments hidden">
<%= render :partial => 'webui/comment/show', locals: { commentable: supersed } %>
Expand Down

0 comments on commit a449374

Please sign in to comment.