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:
Keith Mitchell
2014-01-20 11:13:29 -08:00
parent 0ace7030c6
commit 770ea6b69f
2 changed files with 14 additions and 15 deletions

View File

@@ -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;
}

View File

@@ -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:")}&#32;
${sr_list(scope.subreddits)}.
</li>
%if scope.subreddit_only:
%if compact:
${_("Only in:")}&#32;
${sr_list(scope.subreddits)}
<br>
%else:
<li>
${_("Only in the subreddits:")}&#32;
${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:")}&#32;
${sr_list(scope.subreddits)}
<br>
%endif
%if expiration:
${_("Expires in:")}&#32;
${timeuntil(expiration)}
<br>
%endif
</div>
%endif
</div>