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
12 changed files
with
60 additions
and
79 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="row-fluid content"> | ||
|
||
<div class="span8 article-status" role="main"> | ||
<article> | ||
<h1>Your article submissions</h1> | ||
<ul class="unstyled" id="article-requests"> | ||
|
||
<li class="article-request"><a href="#" class="article-request-link">› Nam luctus aliquam tincidunt. Maecenas at nisi purus, nec posuere diam. </a> | ||
<span class="label">Approved</span> | ||
</li> | ||
|
||
</ul> | ||
|
||
</article> | ||
</div> | ||
<!-- /.span8 --> | ||
|
||
<div class="span4" role="complementary"> | ||
</div> | ||
<!-- /.span4 --> | ||
|
||
</div> |
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,29 @@ | ||
module.exports = function(html, templates, conf, bind, Map, content) { | ||
|
||
var map = Map(); | ||
map.className('article-request').to('article-request'); | ||
map.className('article-request-link').to('title'); | ||
map.className('article-request-link').use('url').as('href'); | ||
map.className('label').use('class').as('class'); | ||
map.className('label').to('state'); | ||
|
||
return function(articleRequests) { | ||
|
||
var data = { | ||
'article-request': articleRequests.length ? articleRequests.map(function(articleRequest) { | ||
return { | ||
'url': '/profile/article-requests/' + encodeURIComponent(articleRequest._id), | ||
'title': '› ' + articleRequest.title, | ||
'state': articleRequest.state, | ||
'class': 'label label-' + articleRequest.state | ||
}; | ||
|
||
}) : 'You have none.' | ||
}; | ||
|
||
return templates('/layout.html').call(this, { | ||
main: bind(html, data, map), | ||
title: 'Profile - Article Requests' | ||
}); | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.