mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 06:18:08 -05:00
Clean up /prefs/apps view of OAuth2Scopes
Re-styles the /prefs/apps view of app permissions so that the new, longer lists of scopes won't overflow.
This commit is contained in:
@@ -7466,7 +7466,7 @@ body:not(.gold) .allminus-link {
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
.developed-app.collapsed, .authorized-app { height: 100px; }
|
||||
.developed-app.collapsed, .authorized-app { min-height: 100px; }
|
||||
.developed-app .collapsed { display: none; }
|
||||
|
||||
.developed-app .ajax-upload-form {
|
||||
@@ -7476,7 +7476,7 @@ body:not(.gold) .allminus-link {
|
||||
.app-details {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
height: 72px;
|
||||
min-height: 72px;
|
||||
margin-left: 1em;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
@@ -196,11 +196,17 @@
|
||||
<%def name="scope_details(scope, compact=False, expiration=None)">
|
||||
<div class="app-permissions">
|
||||
<ul>
|
||||
%if not compact and scope.subreddit_only:
|
||||
<li>
|
||||
${_("Only in the subreddits:")} 
|
||||
${sr_list(scope.subreddits)}.
|
||||
</li>
|
||||
%if scope.subreddit_only:
|
||||
%if compact:
|
||||
${_("Only in:")} 
|
||||
${sr_list(scope.subreddits)}
|
||||
<br>
|
||||
%else:
|
||||
<li>
|
||||
${_("Only in the subreddits:")} 
|
||||
${sr_list(scope.subreddits)}.
|
||||
</li>
|
||||
%endif
|
||||
%endif
|
||||
%for name, scope_info in scope.details():
|
||||
<li>
|
||||
@@ -224,18 +230,11 @@
|
||||
</li>
|
||||
%endif
|
||||
</ul>
|
||||
%if compact and (scope.subreddit_only or expiration):
|
||||
%if compact and expiration:
|
||||
<div class="app-permissions-details">
|
||||
%if scope.subreddit_only:
|
||||
${_("Only in:")} 
|
||||
${sr_list(scope.subreddits)}
|
||||
<br>
|
||||
%endif
|
||||
%if expiration:
|
||||
${_("Expires in:")} 
|
||||
${timeuntil(expiration)}
|
||||
<br>
|
||||
%endif
|
||||
</div>
|
||||
%endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user