Selaa lähdekoodia

changing structure of conversations and making

main
Simon Bowie 1 vuosi sitten
vanhempi
commit
84ba48768a
6 muutettua tiedostoa jossa 29 lisäystä ja 5 poistoa
  1. +2
    -2
      web/app/conversations.py
  2. +3
    -3
      web/app/making.py
  3. +0
    -0
      web/app/templates/conversations-overview.html
  4. +12
    -0
      web/app/templates/conversations-text.html
  5. +0
    -0
      web/app/templates/making-overview.html
  6. +12
    -0
      web/app/templates/making-text.html

+ 2
- 2
web/app/conversations.py Näytä tiedosto

@@ -15,7 +15,7 @@ def index():
with open('content/section_2/conversations.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('conversations.html', text=text)
return render_template('conversations-overview.html', text=text)

# route for Martha Gowans page
@conversations.route('/conversations/martha')
@@ -23,4 +23,4 @@ def martha():
with open('content/section_2/I-Martha-gowans.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('conversations.html', text=text)
return render_template('conversations-text.html', text=text)

+ 3
- 3
web/app/making.py Näytä tiedosto

@@ -16,7 +16,7 @@ def index():
with open('content/section_3/making.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('making.html', text=text)
return render_template('making-overview.html', text=text)

# route for interface design essay
@making.route('/making/interface/')
@@ -24,7 +24,7 @@ def interface():
with open('content/section_3/on-interface-design.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('making.html', text=text)
return render_template('making-text.html', text=text)

# route for databases essay
@making.route('/making/search-engine-book/')
@@ -32,4 +32,4 @@ def databases():
with open('content/section_3/on-combining-databases-and-books.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('making.html', text=text)
return render_template('making-text.html', text=text)

web/app/templates/conversations.html → web/app/templates/conversations-overview.html Näytä tiedosto


+ 12
- 0
web/app/templates/conversations-text.html Näytä tiedosto

@@ -0,0 +1,12 @@
<div class="conversations">
<a href="/contents/" class="arrow-back h1 text-left" title="back to index"> ⇽ </a>
{% extends "base.html" %}

{% block content %}

{{ text|safe }}

{% endblock %}

</div>

web/app/templates/making.html → web/app/templates/making-overview.html Näytä tiedosto


+ 12
- 0
web/app/templates/making-text.html Näytä tiedosto

@@ -0,0 +1,12 @@
<div class="making">
<a href="/contents/" class="arrow-back h1 text-left" title="back to index"> ⇽ </a>
{% extends "base.html" %}

{% block content %}

{{ text|safe }}

{% endblock %}

</div>

Loading…
Peruuta
Tallenna