1
0
Fork 0

Improved the optics of the Apllication install View. Also now shows Devel as version number for dev apps.

This commit is contained in:
Michael Hackstein 2014-12-15 10:21:46 +01:00
parent d3987063a5
commit dc15329e64
4 changed files with 7 additions and 5 deletions

View File

@ -20,7 +20,11 @@
<h3>
<%= attributes.name %>
<span class="license"><%= attributes.license %></span>
<span class="version"><%= attributes.app.split(':').pop() %></span>
<% if (attributes.development) { %>
<span class="version">devel</span>
<% } else { %>
<span class="version"><%= attributes.app.split(':').pop() %></span>
<% } %>
</h3>
<p class="description"><%= attributes.description %></p>
</div>

View File

@ -87,7 +87,6 @@
</th>
</tr>
</table>
<button id="installGithub" class="button-success pull-right" style="margin-right:8px">Install</button>
</div>
</div>
@ -104,7 +103,6 @@
</th>
</tr>
</table>
<button id="installZip" class="button-success pull-right" style="margin-right:8px">Install</button>
</div>
</div>
</div>

View File

@ -1,6 +1,6 @@
/*jshint browser: true */
/*jshint strict: false, unused: false */
/*global Backbone, $, window, arangoHelper, templateEngine, Joi, _*/
/*global Backbone, $, window, arangoHelper, templateEngine, Joi, _, modalDialogHelper*/
window.ApplicationDetailView = Backbone.View.extend({
el: '#content',

View File

@ -636,7 +636,7 @@
description: $("#new-app-description").val()
};
console.log(info);
$.post("templates/generate", info, function(a) {
$.post("templates/generate", JSON.stringify(info), function(a) {
alert("GENERATOOOO!", a);
});
},