Skip to content

Commit

Permalink
Fixed width of read more button in card (publiclab#7446)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlazypanda authored Feb 29, 2020
1 parent 224701f commit 7d69953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/notes/_card.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<% if tagname && node.has_tag("pin:#{tagname}") %><span style="margin-right:4px;"><i rel="tooltip" title="This item was pinned with the tag 'pin:<%= tagname %>'." class="fa fa-thumb-tack"></i></span><% end %>
Post by <a <% if @widget %>target="_blank"<% end %> href="/profile/<%= node.author.name %>" style="color: #303030">@<%= node.author.name %></a> <%= node.author.new_contributor %></div><br>
<span style="color:darkgray;">
<i class="fa fa-comment-o"></i>
<i class="fa fa-comment-o"></i>
<%= node.comments.size %> &nbsp; | &nbsp; <%= distance_of_time_in_words(node.created_at, Time.current, { include_seconds: false, scope:'datetime.time_ago_in_words' }).gsub('about ','') %>
</span>
<% end %>
Expand All @@ -53,9 +53,9 @@
<li><a>Total Likes: <%= node.likers.length %></a></li>
<div class="content" style="width: 100%" >
<% if @compact.nil? %>

<li class="buttons mb-2"><% if @current_user && ['admin','moderator'].include?(@current_user.role) %><a style="width: 90px" class="btn btn-outline-secondary" href="/moderate/spam/<%= node.id %>"><i class="fa fa-ban"></i> <%= t('notes._notes.spam') %></a><% end %></li>
<li class="buttons"><a style="width: 90px;" class="btn btn-outline-secondary" href="<%= node.path %>"><%= t('notes._notes.read_more') %></a></li>
<li class="buttons"><a class="btn btn-outline-secondary" href="<%= node.path %>"><%= t('notes._notes.read_more') %></a></li>
<% end %>
<% if @current_user && params[:mod] %>
<a class="btn btn-outline-secondary" href="#"><i class="fa fa-ban-circle"></i> <%= t('notes._notes.spam') %></a>
Expand Down

0 comments on commit 7d69953

Please sign in to comment.