-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/pull/3363'
- Loading branch information
Showing
11 changed files
with
94 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<div class="user_popup"> | ||
<%= user_thumbnail popup %> | ||
<p><%= t(".#{type}") %></p> | ||
<p><%= link_to popup.display_name, user_path(popup) %></p> | ||
<div class="user_popup row no-gutters mx-1"> | ||
<div class="col-auto mx-1"> | ||
<%= user_thumbnail popup %> | ||
</div> | ||
<div class="col mx-1"> | ||
<p><%= t(".#{type}") %></p> | ||
<p><%= link_to popup.display_name, user_path(popup) %></p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
<div class="clearfix diary-comment<%= " text-muted deleted" unless diary_comment.visible? %>"> | ||
<%= user_thumbnail diary_comment.user %> | ||
<p class="text-muted comment-heading" id="comment<%= diary_comment.id %>"><%= t(".comment_from_html", :link_user => (link_to diary_comment.user.display_name, user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}")) %> | ||
<% if current_user and diary_comment.user.id != current_user.id %> | ||
| <%= report_link(t(".report"), diary_comment) %> | ||
<% end %> | ||
</p> | ||
|
||
<div class="richtext text-break"><%= diary_comment.body.to_html %></div> | ||
<% if can? :hidecomment, DiaryEntry %> | ||
<span> | ||
<% if diary_comment.visible? %> | ||
<%= link_to t(".hide_link"), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t(".confirm") } %> | ||
<% else %> | ||
<%= link_to t(".unhide_link"), unhide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t(".confirm") } %> | ||
<div class="row diary-comment<%= " text-muted deleted" unless diary_comment.visible? %>"> | ||
<div class="col-auto"> | ||
<%= user_thumbnail diary_comment.user %> | ||
</div> | ||
<div class="col"> | ||
<p class="text-muted comment-heading" id="comment<%= diary_comment.id %>"><%= t(".comment_from_html", :link_user => (link_to diary_comment.user.display_name, user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}")) %> | ||
<% if current_user and diary_comment.user.id != current_user.id %> | ||
| <%= report_link(t(".report"), diary_comment) %> | ||
<% end %> | ||
</span> | ||
<% end %> | ||
</p> | ||
|
||
<div class="richtext text-break"><%= diary_comment.body.to_html %></div> | ||
<% if can? :hidecomment, DiaryEntry %> | ||
<span> | ||
<% if diary_comment.visible? %> | ||
<%= link_to t(".hide_link"), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t(".confirm") } %> | ||
<% else %> | ||
<%= link_to t(".unhide_link"), unhide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t(".confirm") } %> | ||
<% end %> | ||
</span> | ||
<% end %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<% reports.each do |report| %> | ||
<div class="report"> | ||
<div class="float-left"> | ||
<div class="row"> | ||
<div class="col-auto"> | ||
<%= link_to user_thumbnail(report.user), user_path(report.user) %> | ||
</div> | ||
<p class="text-muted mb-0"> | ||
<%= t ".reported_by_html", :category => report.category, | ||
:user => link_to(report.user.display_name, user_path(report.user)), | ||
:updated_at => l(report.updated_at.to_datetime, :format => :friendly) %> | ||
</p> | ||
<p><%= report.details %></p> | ||
<div class="col"> | ||
<p class="text-muted mb-0"> | ||
<%= t ".reported_by_html", :category => report.category, | ||
:user => link_to(report.user.display_name, user_path(report.user)), | ||
:updated_at => l(report.updated_at.to_datetime, :format => :friendly) %> | ||
</p> | ||
<p><%= report.details %></p> | ||
</div> | ||
</div> | ||
<hr> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters