mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
Clean up how new apps are inserted into /prefs/apps.
This commit is contained in:
@@ -2878,7 +2878,8 @@ class ApiController(RedditController, OAuth2ResourceController):
|
||||
client.add_developer(c.user)
|
||||
form.set_html('.status', _('application created'))
|
||||
apps = PrefApps([], [client])
|
||||
jquery('#developed-apps ul').append(
|
||||
jquery('#developed-apps > h1').show()
|
||||
jquery('#developed-apps > ul').append(
|
||||
apps.call('developed_app', client, collapsed=False))
|
||||
|
||||
@validatedForm(VUser(),
|
||||
|
||||
@@ -183,15 +183,14 @@
|
||||
%endif
|
||||
|
||||
<div id="developed-apps">
|
||||
%if thing.developed_apps:
|
||||
<h1>${_("developed applications")}</h1>
|
||||
|
||||
<ul>
|
||||
<h1 style="${'' if thing.developed_apps else 'display:none'}">
|
||||
${_("developed applications")}
|
||||
</h1>
|
||||
<ul>
|
||||
%for app in thing.developed_apps:
|
||||
${developed_app(app)}
|
||||
%endfor
|
||||
</ul>
|
||||
%endif
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="edit-app-form">
|
||||
|
||||
Reference in New Issue
Block a user