Browse Source

team page + donate + query for homepage

master
jules 4 years ago
parent
commit
6bffdb774a
  1. 16
      daapinterface.py
  2. 1
      static/css/style.css
  3. 4
      templates/layout.html
  4. 12
      templates/team.html

16
daapinterface.py

@ -65,7 +65,7 @@ def home():
wdt:P87 ?dateadded.
FILTER(?work != wd:Q57)
}
ORDER BY (?dateadded)
ORDER BY DESC (?dateadded)
LIMIT 12
''')
sparql.setReturnFormat(JSON)
@ -1047,6 +1047,20 @@ def upload():
return render_template('upload.html', text=text)
# #################### TEAM
@app.route("/team")
def team():
url="https://daap.bannerrepeater.org/w/index.php?title=Team&action=render"
# Make a GET request to fetch the raw HTML content
html_content = requests.get(url).text
# Parse the html content
soup = BeautifulSoup(html_content, "lxml")
# print(soup.prettify()) # print the parsed data of html
text=soup.find("html")
text=Markup(text)
return render_template('team.html', text=text)
# #################### CASE STUDY
@app.route("/casestudy")

1
static/css/style.css

@ -1994,6 +1994,7 @@ div#tutorials-intro h3, div#tutorials-intro p {
#link-search{
padding-right: 26px;
text-decoration: none;
}
#navigation {
display: none !important;

4
templates/layout.html

@ -105,8 +105,8 @@
</div>
</div>
<div id="footer-contact-form">
<div id="footer-title-contact"><p>EXPRESSION OF INTEREST</p></div>
<div id="secondary-button"><a class="footer-contact" href="https://docs.google.com/forms/d/e/1FAIpQLSdee1kiy1rDLONW7KNp-a3iRbPlxbCSlF2cDohXOh2SU8oW1A/viewformnope"><div class="secondary-button bluebutton" id="contactform"><span>CONTACT FORM</span></div></a></div>
<div id="footer-title-contact"><p>SUPPORT THE DEVELOPMENT OF THE DAAP</p></div>
<div id="secondary-button"><a class="footer-contact" href="https://localgiving.org/charity/banner-repeater/"><div class="secondary-button bluebutton" id="contactform"><span>DONATE</span></div></a></div>
</div>
</div>
</div>

12
templates/team.html

@ -0,0 +1,12 @@
{% extends "layout.html" %}
{% block content %}
{{ text }}
<style type="text/css">
div#toc{
display: none
}
</style>
{% endblock content %}
Loading…
Cancel
Save