File: two-factor-manage.str

package info (click to toggle)
ruby-rodauth 2.42.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 812 kB
  • sloc: ruby: 7,524; javascript: 100; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#{rodauth.two_factor_setup_heading unless rodauth.two_factor_setup_links.empty?}

<ul class="rodauth-links rodauth-multifactor-setup-links">
#{rodauth.two_factor_setup_links.map do |_, link, text|
  "<li><a href=\"#{h link}\">#{h text}</a></li>"
end.join("\n")}
</ul>

#{rodauth.two_factor_remove_heading unless rodauth.two_factor_remove_links.empty?}

<ul class="rodauth-links rodauth-multifactor-remove-links">
#{rodauth.two_factor_remove_links.map do |_, link, text|
  "<li><a href=\"#{h link}\">#{h text}</a></li>"
end.join("\n")}
#{"<li><a href=\"#{h rodauth.two_factor_disable_path}\">#{rodauth.two_factor_disable_link_text}</a></li>" if rodauth.two_factor_remove_links.length > 1}
</ul>