Commit 9f1fd84d authored by Miguel Rincon's avatar Miguel Rincon

Remove angle brackets from empty name in U2F

This change removes the brackets `< >` from empty names in favor
of using a CSS class to "gray out" the no name label.
parent 47c0f61b
......@@ -102,7 +102,12 @@
%tbody
- @registrations.each do |registration|
%tr
%td= registration[:name].presence || html_escape_once(_("&lt;no name set&gt;")).html_safe
%td
- if registration[:name].present?
= registration[:name]
- else
%span.gl-text-gray-500
= _("no name set")
%td= registration[:created_at].to_date.to_s(:medium)
%td= link_to _('Delete'), registration[:delete_path], method: :delete, class: "btn btn-danger float-right", data: { confirm: _('Are you sure you want to delete this device? This action cannot be undone.') }
......
---
title: Remove angle brackets from empty name in U2F device settings
merge_request: 42440
author:
type: changed
......@@ -857,9 +857,6 @@ msgstr ""
msgid "&lt; 1 hour"
msgstr ""
msgid "&lt;no name set&gt;"
msgstr ""
msgid "&lt;no scopes selected&gt;"
msgstr ""
......@@ -30606,6 +30603,9 @@ msgstr ""
msgid "no expiration"
msgstr ""
msgid "no name set"
msgstr ""
msgid "no one can merge"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment