Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Remove dead poweredby links #431

Merged
merged 4 commits into from

3 participants

@wilsaj

No description provided.

@rduplain
Collaborator

Applications should not require URL, and sites which are no longer online with source still available should be in the Application category.

wilsaj added some commits
@wilsaj wilsaj add newsmeme back in as an application: the source code is still useful 56a6adf
@wilsaj wilsaj don't require a url in poweredby page
There are cases (applications) where just a link to source code is
available and in that case printing both the source and the url twice
looks silly
3f6e202
@wilsaj wilsaj set source to None for cases where url == source 6f773ed
@rduplain rduplain merged commit 1c4fc6f into mitsuhiko:website
@rduplain
Collaborator

Thanks for sprinting!

@dehno

wow
flask is best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 12, 2012
  1. @wilsaj
  2. @wilsaj
  3. @wilsaj

    don't require a url in poweredby page

    wilsaj authored
    There are cases (applications) where just a link to source code is
    available and in that case printing both the source and the url twice
    looks silly
  4. @wilsaj
This page is out of date. Refresh to see the latest.
View
64 flask_website/listings/projects.py
@@ -13,7 +13,8 @@ def __init__(self, name, url, description, source=None):
@property
def host(self):
- return urlparse(self.url)[1]
+ if self.url is not None:
+ return urlparse(self.url)[1]
@property
def sourcehost(self):
@@ -67,11 +68,6 @@ def to_json(self):
Meetup Meeter is a tool for you to know who you have and have not
met at a particular meetup event.
'''),
- Project('newsmeme', 'http://thenewsmeme.com/', u'''
- <p>
- A hackernews/reddit clone written with Flask and
- various Flask extensions.
- ''', source='http://bitbucket.org/danjac/newsmeme'),
Project('ymasuda.jp', 'http://ymasuda.jp/', u'''
<p>
Personal website of Yasushi Masuda.
@@ -100,10 +96,6 @@ def to_json(self):
<p>
A website monitoring service.
'''),
- Project('Eugen\'s Blog', 'http://blog.eugenkiss.com/', u'''
- <p>
- Personal Website of Eugen Kiss.
- ''', source='http://github.com/eugenkiss/Simblin'),
Project('Blueslug', 'http://blueslug.com/', u'''
<p>
A flask-powered anti-social delicious clone
@@ -121,14 +113,6 @@ def to_json(self):
<p>
The website of Papyrus Research, a market research company.
'''),
- Project('Viewfinder', 'http://viewfinder.io/', u'''
- <p>
- A website that helps you find photos you'll like on Flickr.
- '''),
- Project('Daily Lyric', 'http://dailylyric.appspot.com/', u'''
- <p>
- Gives a random song lyric every day
- '''),
Project('Nexuo Community', 'http://community.nuxeo.com/', u'''
<p>
Activity stream aggregator and umbrella home page for the Nuxeo
@@ -171,14 +155,6 @@ def to_json(self):
A website to collect feedback of Python third party
libraries about its compatibility with Python 3
''', source='https://github.com/baijum/getpython3'),
- Project('Expert.io', 'http://expert.io/', u'''
- <p>
- Marketplace for your Expertise.
- '''),
- Project('ahall.org', 'http://ahall.org/', u'''
- <p>
- Alfred Hall on software development
- '''),
Project('Steyr Touristik GmbH', 'http://www.steyr-touristik.at/', u'''
<p>
Website of the Austrian Steyr Touristik GmbH.
@@ -239,8 +215,9 @@ def to_json(self):
geocron can send a text message reading "Pick me up dear" to your
spouse.
'''),
- Project('Cockerel', 'http://dcolish.github.com/Cockerel/', '''
- <p>An Online Logic Assistent Based on Coq.
+ Project('Cockerel', None, '''
+ <p>
+ An Online Logic Assistent Based on Coq.
''', source='http://github.com/dcolish/Cockerel'),
Project('Ryshcate', 'http://ryshcate.leafstorm.us/', '''
<p>
@@ -249,9 +226,10 @@ def to_json(self):
''', source='http://bitbucket.org/leafstorm/ryshcate/'),
Project(u'Übersuggest Keyword Suggestion Tool',
'http://suggest.thinkpragmatic.net/', u'''
- <p>Übersuggest is a free tool that exploit the Google
- suggest JSON API to get keyword ideas for your search marketing
- campaign (PPC or SEO).
+ <p>
+ Übersuggest is a free tool that exploit the Google
+ suggest JSON API to get keyword ideas for your search marketing
+ campaign (PPC or SEO).
''', source='http://bitbucket.org/esaurito/ubersuggest'),
Project(u'@font-face { … }', 'http://fontface.kr/', u'''
<p>
@@ -268,24 +246,23 @@ def to_json(self):
neat and interesting. Store it on Remar.kZ without having
to enter your credentials.
''', source='http://bitbucket.org/little_arhat/remarkz'),
- Project('Dominion', 'http://alexanderweb.de:8080/', u'''
+ Project('Dominion', None, u'''
<p>
Domination is a clone of a well-known card game.
''', source='https://bitbucket.org/xoraxax/domination/'),
- Project('jitviewer', 'https://bitbucket.org/pypy/jitviewer', '''
+ Project('jitviewer', None, '''
<p>
web-based tool to inspect the output of PyPy JIT log
- '''),
- Project('blohg', 'http://hg.rafaelmartins.eng.br/blohg/', '''
+ ''', source='https://bitbucket.org/pypy/jitviewer'),
+ Project('blohg', None, '''
<p>
- A mercurial based blog engine. Can be seen in action on
- <a href="http://rafaelmartins.eng.br/">rafaelmartins.eng.br</a>.
+ A mercurial based blog engine.
''', source='http://hg.rafaelmartins.eng.br/blohg/'),
Project('pidsim-web', 'http://pidsim.rafaelmartins.eng.br/?source=en_US', '''
<p>
PID Controller simulator.
''', source='http://hg.rafaelmartins.eng.br/pidsim-web/'),
- Project('HTTPBin', 'http://httpbin.org/', u'''
+ Project('HTTPBin', 'http://httpbin.org/', u'''
<p>
An HTTP request & response service.
''', source='https://github.com/kennethreitz/httpbin'),
@@ -294,16 +271,23 @@ def to_json(self):
Instamator generates usable feeds from your Instagram “likes”
so you can use them as you wish.
'''),
- Project('Flask-Pastebin', 'http://github.com/mitsuhiko/flask-pastebin', u'''
+ Project('Flask-Pastebin', None, u'''
<p>
Pastebin app with Flask and a few extensions that does Facebook
connect as well as realtime push notifications with socket.io
and juggernaut.
- ''', source='http://github.com/mitsuhiko/flask-pastebin')
+ ''', source='http://github.com/mitsuhiko/flask-pastebin'),
+ Project('newsmeme', None, u'''
+ <p>
+ A hackernews/reddit clone written with Flask and
+ various Flask extensions.
+ ''', source='http://bitbucket.org/danjac/newsmeme'),
]
+
}
+
# order projects by name
for _category in projects.itervalues():
_category.sort(key=lambda x: x.name.lower())
View
13 flask_website/templates/community/poweredby.html
@@ -1,15 +1,24 @@
{% extends "community/layout.html" %}
{% block title %}Powered By Flask{% endblock %}
+{% macro project_url(project) %}
+{%- if project.url -%}
+ {{ project.url }}
+ {%- elif project.source -%}
+ {{ project.source }}
+{%- endif -%}
+{% endmacro %}
{% macro render_projects(kind) %}
{% for project in projects[kind] %}
<div class=project>
- <h4><a href="{{ project.url }}">{{ project.name }}</a></h4>
+ <h4><a href="{{ project_url(project) }}">{{ project.name }}</a></h4>
<div class=description>
{{ project.description }}
</div>
<dl>
+ {% if project.url %}
<dt>URL:
<dd><a href="{{ project.url }}">{{ project.host }}</a>
+ {% endif %}
{% if project.source %}
<dt>Sourcecode:
<dd><a href="{{ project.source }}">{{ project.sourcehost }}</a>
@@ -23,7 +32,7 @@
<p>
This is a list of websites and projects that disclosed that they
are running on Flask. If you want your own website or project
- listed here,
+ listed here,
<a href=mailto:armin.ronacher@active-4.com>send me a mail</a>
with the URL, name and description of the website.
<h3>Websites</h3>
Something went wrong with that request. Please try again.