show.html.haml 989 Bytes
Newer Older
1
- add_to_breadcrumbs _("Applications"), oauth_applications_path
2
- breadcrumb_title @application.name
3
- page_title @application.name, _("Applications")
4 5
- @content_class = "limit-container-width" unless fluid_layout

Valery Sizov's avatar
Valery Sizov committed
6
%h3.page-title
7
  = _("Application: %{name}") % { name: @application.name }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
8

9
.table-holder.oauth-application-show
Douwe Maan's avatar
Douwe Maan committed
10 11 12
  %table.table
    %tr
      %td
13
        = _('Application Id')
Douwe Maan's avatar
Douwe Maan committed
14 15 16 17
      %td
        %code#application_id= @application.uid
    %tr
      %td
18
        = _('Secret:')
Douwe Maan's avatar
Douwe Maan committed
19 20
      %td
        %code#secret= @application.secret
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
21

Douwe Maan's avatar
Douwe Maan committed
22 23
    %tr
      %td
24
        = _('Callback url')
Douwe Maan's avatar
Douwe Maan committed
25 26 27 28
      %td
        - @application.redirect_uri.split.each do |uri|
          %div
            %span.monospace= uri
29

30
    = render "shared/tokens/scopes_list", token: @application
31

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
32
.form-actions
33
  = link_to _('Edit'), edit_oauth_application_path(@application), class: 'btn btn-primary wide float-left'
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
34
  = render 'delete_form', application: @application, submit_btn_css: 'btn btn-danger prepend-left-10'