Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

show sub head instead of h3 and p

Behrokh Satarnejadfdd611d4c777
diff --git a/app/views/my/sessions/index.html.erb b/app/views/my/sessions/index.html.erb
index 27fea1c9600..3972c02f927 100644
--- a/app/views/my/sessions/index.html.erb
+++ b/app/views/my/sessions/index.html.erb
@@ -42,8 +42,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= render ::Users::Sessions::TableComponent.new(rows: @sessions, current_session: session) %>
<% if Setting::Autologin.enabled? && @autologin_tokens.any? %>
- <h3><%= t("users.sessions.remembered_devices") %></h3>
- <p><%= t("users.sessions.remembered_devices_caption") %></p>
-
+ <%=
+ render(Primer::Beta::Subhead.new(mt: 3)) do |component|
+ component.with_heading(tag: :h3) { t("users.sessions.remembered_devices") }
+ component.with_description { t("users.sessions.remembered_devices_caption") }
+ end
+ %>
<%= render ::Users::AutoLoginTokens::TableComponent.new(rows: @autologin_tokens, current_token: @current_token) %>
<% end %>