mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Title case for "Events Archive" "Upcoming Events" & "Latest News"
This commit is contained in:
@ -15,7 +15,7 @@ def main(request):
|
|||||||
other_events = Event.objects.select_related('country').filter(approved=True, badged=False).filter(training=False, enddate__gt=date.today()).order_by('enddate', 'startdate',)
|
other_events = Event.objects.select_related('country').filter(approved=True, badged=False).filter(training=False, enddate__gt=date.today()).order_by('enddate', 'startdate',)
|
||||||
training = Event.objects.select_related('country').filter(approved=True).filter(training=True, enddate__gt=date.today()).order_by('enddate', 'startdate',)
|
training = Event.objects.select_related('country').filter(approved=True).filter(training=True, enddate__gt=date.today()).order_by('enddate', 'startdate',)
|
||||||
return render_pgweb(request, 'about', 'events/archive.html', {
|
return render_pgweb(request, 'about', 'events/archive.html', {
|
||||||
'title': 'Upcoming events',
|
'title': 'Upcoming Events',
|
||||||
'eventblocks': (
|
'eventblocks': (
|
||||||
{ 'name': 'Community Events', 'events': community_events, 'link': '',},
|
{ 'name': 'Community Events', 'events': community_events, 'link': '',},
|
||||||
{ 'name': 'Other Events', 'events': other_events, 'link': '',},
|
{ 'name': 'Other Events', 'events': other_events, 'link': '',},
|
||||||
|
@ -15,8 +15,8 @@ sitenav = {
|
|||||||
{'title': 'Sponsors', 'link':'/about/sponsors/', 'submenu': [
|
{'title': 'Sponsors', 'link':'/about/sponsors/', 'submenu': [
|
||||||
{'title': 'Servers', 'link': '/about/servers/'},
|
{'title': 'Servers', 'link': '/about/servers/'},
|
||||||
]},
|
]},
|
||||||
{'title': 'Latest news', 'link':'/about/newsarchive/'},
|
{'title': 'Latest News', 'link':'/about/newsarchive/'},
|
||||||
{'title': 'Upcoming events', 'link':'/about/events/'},
|
{'title': 'Upcoming Events', 'link':'/about/events/'},
|
||||||
{'title': 'Press', 'link':'/about/press/'},
|
{'title': 'Press', 'link':'/about/press/'},
|
||||||
{'title': 'Licence', 'link':'/about/licence/'},
|
{'title': 'Licence', 'link':'/about/licence/'},
|
||||||
],
|
],
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{%extends "base/page.html"%}
|
{%extends "base/page.html"%}
|
||||||
{%load markup%}
|
{%load markup%}
|
||||||
{%block title%}News archive{%if tag%} - {{tag.name}}{%endif%}{%endblock%}
|
{%block title%}News Archive{%if tag%} - {{tag.name}}{%endif%}{%endblock%}
|
||||||
{%block contents%}
|
{%block contents%}
|
||||||
<h1>News archive{%if tag%} - {{tag.name}}{%endif%} <i class="far fa-newspaper"></i></h1>
|
<h1>News Archive{%if tag%} - {{tag.name}}{%endif%} <i class="far fa-newspaper"></i></h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{%for t in newstags%}<span class="newstag"><a class="btn btn-primary" href="/about/newsarchive/{{t.urlname}}/">{{t.name}}</a></span> {%endfor%}
|
{%for t in newstags%}<span class="newstag"><a class="btn btn-primary" href="/about/newsarchive/{{t.urlname}}/">{{t.name}}</a></span> {%endfor%}
|
||||||
|
Reference in New Issue
Block a user