Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rendering the criteria starting point

  • Loading branch information...
commit 7a93dc74bf47ed807bfa69d1d786b5274df80e66 1 parent 0a8190f
@stenington stenington authored brianloveswords committed
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
BIN  public/img/footer-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/img/header_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 routes/badge.js
@@ -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;
View
2  views/criteria/criteria.html
@@ -1,4 +1,4 @@
-{% extends "layout.html" %}
+{% extends "criteria/layout.html" %}
{% block head %}
<link rel="stylesheet" href="/stylesheets/criteria.css">
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.