1
0
Fork 0

Frontend: The aardvark now supports thumbnails

This commit is contained in:
Michael Hackstein 2013-04-05 15:53:50 +02:00
parent a8f8df00f9
commit c3855a3eab
4 changed files with 31 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<div class="pull-right">
<i class="icon-edit" alt="Properties" title="Change foxx properties"></i>
</div>
<img src="img/icon_arango.png" alt="icon" class="foxxIcon"/>
<img src="../aardvark/foxxes/thumbnail/<%=attributes.app %>" alt="icon" class="foxxIcon"/>
<p class="foxxDescription">
<!--Description: <%=attributes.description %><br /> -->
<strong>Mount-Point:</strong>&nbsp;<%=attributes.mount %><br />

View File

@ -1,7 +1,7 @@
<small>
<div class="plain">
<h5 class="applicationName"><%= attributes.name %></h5>
<img src="img/icon_arango.png" alt="icon" class="foxxIcon"/>
<img src="../aardvark/foxxes/thumbnail/<%=attributes.app %>" alt="icon" class="foxxIcon"/>
<p class="foxxDescription">
<!--Description: <%=attributes.description %><br />-->
<strong>Path:</strong>&nbsp;<%=attributes.path %><br />

View File

@ -79,6 +79,11 @@
.summary("Update a foxx.")
.notes("Used to either activate/deactivate a foxx, or change the mount point.");
app.get("/foxxes/thumbnail/:app", function (req, res) {
res.transformations = [ "base64decode" ];
res.body = repositories.foxxes.thumbnail(req.params("app"));
});
app.get('/foxxes', function (req, res) {
res.json(repositories.foxxes.viewAll());

File diff suppressed because one or more lines are too long