This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
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
1 parent
74c43e3
commit 184952f
Showing
7 changed files
with
250 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#on-npm-foo { | ||
#content { | ||
a { | ||
font-family: $Mono; | ||
} | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
import requests | ||
|
||
from aspen import Response | ||
from gratipay.utils import markdown | ||
[---] | ||
package_name = request.path['package'] | ||
package = website.db.one("select * from packages where package_manager='npm' " | ||
"and name=%s", (package_name,)) | ||
if package is None: | ||
raise Response(404) | ||
banner = 'npm' | ||
title = package_name | ||
page_id = "on-npm-foo" | ||
suppress_sidebar = True | ||
url = 'https://npmjs.com/package/' + package.name | ||
[---] | ||
{% extends "templates/base.html" %} | ||
|
||
{% block banner %} | ||
<a class="elsewhere" href="{{ url }}"> | ||
<div class="avatar"> | ||
<img src="{{ website.asset('npm-wombat-typing.svg') }}" class="avatar"> | ||
<img class="platform" src="{{ website.asset('npm-n.png') }}" /> | ||
</div> | ||
{{ super () }} | ||
</a> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<p><i>{{ package.description }}</i></p> | ||
<a href="{{ url }}">{{ url }}</a> | ||
|
||
|
||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[---] | ||
title = "Search npm" | ||
suppress_sidebar = True | ||
website.redirect('/') # nothing here yet | ||
[---] | ||
{% extends "templates/base.html" %} | ||
{% block content %} | ||
<input type="text" name="q"> <button class="selected">Search</button> | ||
{% endblock %} |