asciinema.org/app/views/users/edit.html.slim

53 lines
1.9 KiB
Plaintext
Raw Normal View History

2015-04-02 09:45:39 +00:00
.container.edit-page
2014-07-02 17:04:41 +00:00
.row
.col-md-9
2015-04-02 09:45:39 +00:00
= horizontal_form_for page.user do |f|
legend Account settings
2014-04-12 10:16:58 +00:00
2014-07-02 17:04:41 +00:00
= f.input :username
= f.input :email, required: true
2015-04-28 11:18:11 +00:00
= f.input :name, label: 'Full name'
= f.input :theme_name, label: 'Terminal theme', collection: themes_for_select, include_blank: default_user_theme_label, hint: 'Applies to all your asciicasts unless custom theme chosen for a specific asciicast'
- if page.show_privacy_controls?
= f.input :asciicasts_private_by_default, label: 'Asciicast visibility', as: :radio_buttons, collection: [['public', false], ['private', true]], hint: 'Applies to all *new* asciicasts'
2014-07-02 17:04:41 +00:00
= f.buttons do
= f.button :submit, 'Save', class: 'btn-primary'
= link_to 'Cancel', profile_path(current_user), class: 'btn'
2015-04-02 09:45:39 +00:00
.row
.col-md-12
legend Recorder tokens
- if page.show_tokens?
p The following recorder tokens have been associated with your account:
- unless page.active_tokens.empty?
ul
- page.active_tokens.each do |token|
li
= token.token
' registered
= time_ago_tag token.created_at
' -
= link_to 'Revoke', api_token_path(token), method: :delete
- unless page.revoked_tokens.empty?
ul
- page.revoked_tokens.each do |token|
li.revoked-token
= token.token
' registered
= time_ago_tag token.created_at
' , revoked
= time_ago_tag token.revoked_at
- else
p
| If you want your recordings to be assigned to your profile
you have to register your local recorder token.
p
' There is currently no recorder token associated with your account.
Run
code asciinema auth
| in your terminal to register one.