Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions meetups/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% from 'helpers/forms.html' import render_field -%}

{% extends 'base.html' %}

{%- block title -%}
About WhereToMeetup - {{ super() }}
{%- endblock -%}

{%- block content %}
<div class="hero-unit">
<div class="container">
<h1>About WhereToMeetup</h1>
</div>
</div>

<div class="info">
<div class="span6 offset2 container">
<p>
WhereToMeetup connects meetup organizers with hosts and sponsors.
</p>
</div>
</div>

{%- endblock %}
2 changes: 1 addition & 1 deletion meetups/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>Where to Meetup</h1>
For groups in need of spaces and spaces in need of groups
</p>
<p>
<a class="btn btn-inverse btn-large">
<a class="btn btn-inverse btn-large" href="/about">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the template tag url_for to make sure this link never breaks:

<a class="btn btn-inverse btn-large" href="{{ url_for('about') }}">

Learn more
</a>
</p>
Expand Down
6 changes: 4 additions & 2 deletions meetups/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ def clear():
def index():
return render_template('index.html')


@app.route('/have/')
def have():
venues = get_unclaimed_venues()
return render_template('have.html', venues=venues)


@app.route("/about/")
def about():
return render_template('about.html')

@app.route('/login/')
@app.route('/login/<string:service>/', methods=('GET', 'POST'))
Expand Down