Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
120 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
body { | ||
padding: 50px; | ||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; | ||
.documentlist { | ||
height: 100px; | ||
overflow: auto; | ||
} | ||
|
||
a { | ||
color: #00B7FF; | ||
} | ||
.documentlist:hover { | ||
cursor: pointer; | ||
background: #EEE; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
exports.viewDocument = function(req, res, next) { | ||
var ctx = { | ||
title: 'Viewing Document: ' + req.document._id, | ||
}; | ||
|
||
res.render('document', ctx); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends 'layout.html' %} | ||
|
||
{% block title %}{{ document._id }}{% endblock %} | ||
|
||
{% block breadcrumb %} | ||
<li> | ||
<a href="">Home</a> | ||
<span class="divider">/</span> | ||
</li> | ||
<li> | ||
<a href="/db/{{ dbName }}">{{ dbName }}</a> | ||
<span class="divider">/</span> | ||
</li> | ||
<li> | ||
<a href="/db/{{ dbName }}/{{ collectionName }}">{{ collectionName }}</a> | ||
<span class="divider">/</span> | ||
</li> | ||
<li class="active"> | ||
{{ document._id }} | ||
</li> | ||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
|
||
<textarea class="prettyprint span9" style="height: 500px;"> | ||
{{ document|json }} | ||
</textarea> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters