summaryrefslogtreecommitdiff
path: root/app/views/admin/requests_profiles/index.html.haml
blob: 9d42a2bfa93b781a11fac44bf47ecf8db04a4b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- page_title _('Requests Profiles')

%h3.page-title
  = page_title

.bs-callout.clearfix
  = html_escape(_('Pass the header %{codeOpen} X-Profile-Token: %{profile_token} %{codeClose} to profile the request')) % { profile_token: @profile_token, codeOpen: '<code>'.html_safe, codeClose: '</code>'.html_safe }

- if @profiles.present?
  .gl-mt-3
    - @profiles.each do |path, profiles|
      .card
        .card-header
          %code= path
        %ul.content-list
          - profiles.each do |profile|
            %li
              = link_to profile.time.to_s(:long) + ' ' + profile.profile_mode.capitalize,
                admin_requests_profile_path(profile)
- else
  %p
    = _('No profiles found')