Skip to content

Commit

Permalink
Merge pull request #16831 from opf/58127-subtitle-in-activity-page-is…
Browse files Browse the repository at this point in the history
…-centerlized

[58127] Subtitle in activity page is centerlized
  • Loading branch information
dombesz committed Sep 27, 2024
2 parents a020363 + 35afa86 commit 200d70e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/views/activities/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { (@author.nil? ? t(:label_activity) : t(:label_user_activity, value: link_to_user(@author))).html_safe }
header.with_description { t(:label_date_from_to, start: format_date(@date_to - @days), end: format_date(@date_to-1)) }
header.with_breadcrumbs([{ href: home_path, text: organization_name},
*([href: project_overview_path(@project.id), text: @project.name] if @project),
t(:label_activity)])
end
%>
<%=
render(Primer::OpenProject::SubHeader.new) do |subheader|
subheader.with_text {t(:label_date_from_to, start: format_date(@date_to - @days), end: format_date(@date_to-1))}
end
%>
<%= render(Activities::DaysComponent.new(events: @events, current_project: @project, activity_page: @activity_page)) %>
Expand Down

0 comments on commit 200d70e

Please sign in to comment.