Skip to content

Commit 0a5f256

Browse files
committed
enabled live donation counter
1 parent 9f78aca commit 0a5f256

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

mps_site/templates/components/home/broadcast.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ <h5><i>An event not to be missed!</i></h5>
1313
<div id="countdown" style="font-size: 24px; font-weight: bold; color: white; text-align: center; margin-bottom: 15px;"></div>
1414

1515
<!-- Main content of the purple box -->
16-
<!--<p style="color: white; text-align: left; font-size: 20px;">
17-
DCUfm is Ireland’s Best Student Radio Station. DCUfm is run by our members and their wonderful ideas - you give us your concept and we show you how to take it on air. Additionally, our fantastic podcasting equipment allows members to continue their audio endeavours outside of the studio. DCUfm instils a profound love for audio creation in all of its members, with many of the station’s alumni currently working in stations such as Spin 103.8, Newstalk and FM104.<br><br>
18-
The College View is DCU’s student newspaper. TCV offers members a way to enhance their writing skills and explore different types of journalism - from hard news to wacky satire, from the latest sports scores to reviewing what’s in the cinema. Stories are published online on www.thecollegeview.ie. There’s opportunities to attend and cover events across campus and outside DCU - with the Editorial Team always looking for writers to give their own edge on what’s going on in the University.
19-
</p>-->
16+
<p style="color: white; text-align: left; font-size: 20px;">
17+
We are delighted to announce that the annual DCUtv 24-Hour Charity Broadcast will be returning this year on the 4th and 5th of December in aid of Focus Ireland.
2018

21-
<div id="countdown" style="font-size: 24px; font-weight: bold; color: white; text-align: center; margin-bottom: 15px;">Current Donations Raised: €9 / €7000 </div>
19+
<br><br>The Broadcast is a 24-hour long DCUtv marathon that is organised, produced, recorded, and hosted solely by students and MPS members in their free time. The Broadcast consists of a wide variety of high-quality student-made content broadcast live and uninterrupted from Dublin City University for 24 consecutive hours.
20+
21+
<br><br>The 2024 Broadcast will be held in aid of Focus Ireland, an amazing charity that provides services for people who are homeless and people at risk of homelessness in Ireland. All of us here at MPS believe that the work done by Focus Ireland is invaluable and we really want to help raise awareness of their campaigns and services while also raising as much money as possible for this wonderful cause.
22+
23+
<br><br>Last year, we successfully raised more than €13,000 for our charity partner Jack and Jill. However, our aspiration for this year’s event in support of Focus Ireland is to surpass that achievement and raise more money than we ever have before. In order to reach this ambitious target, we are reliant on the generous support and assistance of our community and sponsors.
24+
25+
</p>
26+
27+
<div id="countdown" style="font-size: 24px; font-weight: bold; color: white; text-align: center; margin-bottom: 15px;">Current Donations Raised: €{{ current_donation_amount }} / €{{ goal_amount}} </div>
2228
</div>
2329

2430
<!-- Committee Members Section -->

mps_site/templates/dcutv.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ <h4 style="text-align: center;"><i>TV Managers: Sarah & Samuel</i></h4>
2929

3030
{% include 'components/managers.html' with title="Meet The TV Managers" subtitle="The team behind everything video!" managers=tv_managers %}
3131

32+
{% include 'components/home/broadcast.html' %}
33+
3234
{% include 'components/dcutv/recent_productions.html' with most_recent_videos=most_recent_videos %}
3335

3436
{% include 'components/stats.html' with title="DCUtv Stats" subtitle="See our progress over the years!" animate_seconds=5 stats=stats_data %}

mps_site/views.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def index(request):
3232
posts = tcv_posts("https://thecollegeview.ie/wp-json/wp/v2/posts?per_page=3&orderby=date&_fields=id,date,title,content,link,author,featured_media")
3333
previous, current, next_show = get_date_time()
3434
events = requests.get("https://clubsandsocs.jakefarrell.ie/dcuclubsandsocs.ie/society/media-production/events").json()
35+
current_donation_amount, goal_amount = get_donation_count_fm()
3536

3637
for event in events:
3738
event['formatted_start'] = format_event_date(event['start'])
@@ -49,7 +50,9 @@ def index(request):
4950
'next_show': next_show,
5051
'homepage_awards': homepage_awards,
5152
'posts': posts,
52-
'homepage_carousel': homepage_carousel,})
53+
'homepage_carousel': homepage_carousel,
54+
'current_donation_amount': current_donation_amount,
55+
'goal_amount': goal_amount})
5356

5457
def tcv(request):
5558
categories = {
@@ -106,6 +109,7 @@ def contact(request):
106109

107110
def dcutv(request):
108111
tv_managers = [member for member in committee_list["members"] if member["position"] == "TV Manager"]
112+
current_donation_amount, goal_amount = get_donation_count_fm()
109113
return render(request, 'dcutv.html',
110114
{'page_name': 'DCUtv',
111115
'tv_thursday' : 'RON9_ByY190',
@@ -114,7 +118,9 @@ def dcutv(request):
114118
'tv_managers': tv_managers,
115119
'dcutv_carousel': dcutv_carousel,
116120
'stats_data': dcutv_stats_data,
117-
'committee_video_id': '1wiscXP9nw0',})
121+
'committee_video_id': '1wiscXP9nw0',
122+
'current_donation_amount': current_donation_amount,
123+
'goal_amount': goal_amount})
118124

119125
def gallery(request):
120126
gallery_page_info = GalleryPage.objects.all().first()

0 commit comments

Comments
 (0)