[%# oauth/admin/consumer.tt Information on a specific consumer Authors: Andrea Nall Copyright (c) 2013 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- sections.title = "View Consumer" -%] [% IF view_other %]

Viewing BLAH BLAH for [% view_u.ljuser_display %].

[% END %] [%- IF view_other -%] [%data_readonly = 'readonly="" disabled="" '%] [%- ELSE -%] [%data_readonly = ''%] [%- END -%] [%- IF edit_consumer %] [%approved_readonly = ''%] [%- ELSE -%] [%approved_readonly = 'readonly="" disabled="" '%] [%- END -%]
[% dw.form_auth %] [%- IF view_other %]

Owner: [% consumer.owner.ljuser_display %]

[%- END -%] [%- IF save_error %]

ERROR! [% save_error %]

[%- END %]

Created: [% consumer.createtime | time_to_http %]

[% IF consumer.updatetime %]

Updated: [% consumer.updatetime | time_to_http %]

[% END %] [% IF consumer.invalidatetime %]

Last Invalidated: [% consumer.invalidatetime | time_to_http %]

[% END %]

Token: [% consumer.token | html %]

[% UNLESS view_other %] [%# Maybe this could load AJAX-y too? %]

Secret: [ View Secret ]

[% END %]

[%- UNLESS view_other -%] [ Reissue Tokens ] [ Delete ]

[%- END -%]