Clean up how new apps are inserted into /prefs/apps.

This commit is contained in:
Logan Hanks
2012-07-24 11:45:39 -07:00
parent efe791ea2c
commit 21b9ffe0ba
2 changed files with 7 additions and 7 deletions

View File

@@ -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(),

View File

@@ -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">