Point to a different template for applications.

This commit is contained in:
Ian Dees 2013-06-02 19:25:02 +00:00
Родитель d1ecbe6edc
Коммит b0715d5e87
2 изменённых файлов: 53 добавлений и 2 удалений

Просмотреть файл

@ -98,7 +98,7 @@ module.exports = function (app) {
], function (req, res, next) {
var data = req.remote;
res.render('user/backpack.html', {
res.render('user/applications.html', {
items: data.badges
});
});
@ -142,4 +142,4 @@ module.exports = function (app) {
})
})
};
};

Просмотреть файл

@ -0,0 +1,51 @@
{% extends 'filter.html' %}
{% set pageTitle = 'My Applications' %}
{% set navItem = 'backpack' %}
{% block list %}
{{ super() }}
<li class="span3">
<figure class="thumbnail">
<a href="/claim"><img src="/media/images/add-badge.png"></a>
<figcaption class="caption">
<p>Claim another badge!</p>
<p class="text-right"><a href="/claim" class="btn">+1</a></p>
</figcaption>
</figure>
</li>
{% endblock %}
{% block item_actions %}
{#
{{ super() }}
<a class="btn show-tooltip" title="Add to your favorites" href="{{ item.url }}/favorite"><i class="icon-heart"></i></a>
#}
{% endblock %}
{% block modal %}
<!-- Modal -->
<div id="shareModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Share This Badge</h3>
</div>
<div class="modal-body">
<a href="#" class="btn btn-block"><i class="icon-twitter"></i> Twitter</a>
<a href="#" class="btn btn-block"><i class="icon-facebook"></i> Facebook</a>
<a href="#" class="btn btn-block">Mozilla Backpack</a>
</div>
</div>
<div id="trashModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Are you sure you want to delete this badge?</h3>
</div>
<div class="modal-body">
<a href="#" class="btn btn-block">Cancel</a>
<a href="#" class="btn btn-block">Yes</a>
</div>
</div>
{% endblock %}