Permalink
Browse files

Rendering the criteria starting point

  • Loading branch information...
1 parent 0a8190f commit 7a93dc74bf47ed807bfa69d1d786b5274df80e66 @stenington stenington committed with brianloveswords Nov 6, 2012
View
1 app.js
@@ -104,6 +104,7 @@ app.get('/badge/image/:shortname.png', [
findBadgeByParamShortname
], badge.image);
app.get('/badge/assertion/:hash', badge.assertion);
+app.get('/badge/criteria/:shortname', badge.criteria);
// User login/logout
// -------------------
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -81,6 +81,7 @@ exports.assertion = function assertion(req, res) {
});
};
+<<<<<<< HEAD
function identity(x) { return x };
function instance(method) {
return function (o) {
@@ -112,6 +113,9 @@ exports.removeClaimCode = function removeClaimCode(req, res, next) {
});
};
+exports.criteria = function criteria(req, res) {
+ res.render('criteria/criteria.html');
+}
exports.findByShortName = function (options) {
var required = !!options.required;
@@ -1,4 +1,4 @@
-{% extends "layout.html" %}
+{% extends "criteria/layout.html" %}
{% block head %}
<link rel="stylesheet" href="/stylesheets/criteria.css">
{% endblock %}

0 comments on commit 7a93dc7

Please sign in to comment.