1
0
Fork 0
forked from gitea/nas

Add copyable_input helper method to wrap shared options (#32119)

This commit is contained in:
Matt Jankowski 2024-10-02 10:45:54 -04:00 committed by Claire
parent 5c72b46a4e
commit d82ffdccbb
5 changed files with 8 additions and 4 deletions

View file

@ -3,5 +3,5 @@
%p= t('doorkeeper.authorizations.show.title')
.input-copy
.input-copy__wrapper
%input.oauth-code{ type: 'text', spellcheck: 'false', readonly: true, value: params[:code] }
= copyable_input value: params[:code], class: 'oauth-code'
%button{ type: :button }= t('generic.copy')