Repository navigation
Expand file tree
/
Copy pathbudget.html
More file actions
170 lines (162 loc) · 7.14 KB
/
Copy pathbudget.html
File metadata and controls
170 lines (162 loc) · 7.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
---
title: RubyConf Austria 2026 | Budget
permalink: /budget/
layout: default
---
{% assign confirmed_income = 0.0 %}
{% assign projected_income = 0.0 %}
{% for item in site.data.budget.income %}
{% if item.projected %}
{% assign projected_income = projected_income | plus: item.amount %}
{% else %}
{% assign confirmed_income = confirmed_income | plus: item.amount %}
{% endif %}
{% endfor %}
{% assign confirmed_expenses = 0.0 %}
{% assign projected_expenses = 0.0 %}
{% for item in site.data.budget.expenses %}
{% if item.projected %}
{% assign projected_expenses = projected_expenses | plus: item.amount %}
{% else %}
{% assign confirmed_expenses = confirmed_expenses | plus: item.amount %}
{% endif %}
{% endfor %}
{% assign difference = confirmed_income | minus: confirmed_expenses %}
{% assign diff_abs = difference %}
{% if difference < 0 %}{% assign diff_abs = 0 | minus: difference %}{% endif %}
{% assign projected_income_total = confirmed_income | plus: projected_income %}
{% assign projected_expenses_total = confirmed_expenses | plus: projected_expenses %}
{% assign projected_difference = projected_income_total | minus: projected_expenses_total %}
{% assign proj_abs = projected_difference %}
{% if projected_difference < 0 %}{% assign proj_abs = 0 | minus: projected_difference %}{% endif %}
{% assign has_projected = false %}
{% if projected_income > 0 or projected_expenses > 0 %}{% assign has_projected = true %}{% endif %}
{% assign currency = site.data.budget.currency %}
<main class="content">
<header class="header">
<div class="header__content">
<h1 class="header__title mb--1">
Budget
</h1>
<p class="header__text mb--3">
Transparency on how we fund and spend on RubyConf Austria.
</p>
</div>
</header>
<section class="section section--basic">
<div class="section__content">
<article class="section__article is-centered mb--8">
<div class="col--100">
<div class="budget-total {% if difference < 0 %}is-negative{% elsif difference > 0 %}is-positive{% endif %}">
<span class="budget-total__label">Confirmed difference</span>
<span class="budget-total__amount">
{% if difference < 0 %}-{% endif %}{{ currency }}{% include format_amount.html amount=diff_abs %}
</span>
<div class="budget-total__breakdown">
<span><span class="budget-total__dot is-positive"></span> Income {{ currency }}{% include format_amount.html amount=confirmed_income %}</span>
<span><span class="budget-total__dot is-negative"></span> Expenses {{ currency }}{% include format_amount.html amount=confirmed_expenses %}</span>
</div>
{% if has_projected %}
<div class="budget-total__projection {% if projected_difference < 0 %}is-negative{% elsif projected_difference > 0 %}is-positive{% endif %}">
<span class="budget-total__projection__label">If all projected lands</span>
<span class="budget-total__projection__amount">
{% if projected_difference < 0 %}-{% endif %}{{ currency }}{% include format_amount.html amount=proj_abs %}
</span>
</div>
{% endif %}
</div>
</div>
</article>
<article class="section__article mb--8">
<div class="col--100">
<h3 class="section__article__title">Income</h3>
<div class="table-scroll">
<table class="table table--budget">
<thead>
<tr>
<th>Item</th>
<th>Notes</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
{% for item in site.data.budget.income %}
<tr{% if item.projected %} class="is-projected"{% endif %}>
<td>
<span class="text--bold">{{ item.name }}</span>
{% if item.projected %}<span class="budget-badge">Projected</span>{% endif %}
</td>
<td>{{ item.note }}</td>
<td class="budget-amount is-positive">{{ currency }}{% include format_amount.html amount=item.amount %}</td>
</tr>
{% endfor %}
<tr class="budget-row-total">
<td><span class="text--bold">Confirmed income</span></td>
<td></td>
<td class="budget-amount is-positive"><span class="text--bold">{{ currency }}{% include format_amount.html amount=confirmed_income %}</span></td>
</tr>
{% if projected_income > 0 %}
<tr class="budget-row-projected-total">
<td>+ projected</td>
<td></td>
<td class="budget-amount is-positive">{{ currency }}{% include format_amount.html amount=projected_income %}</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
</div>
</article>
<article class="section__article mb--8">
<div class="col--100">
<h3 class="section__article__title">Expenses</h3>
<div class="table-scroll">
<table class="table table--budget">
<thead>
<tr>
<th>Item</th>
<th>Notes</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
{% for item in site.data.budget.expenses %}
<tr{% if item.projected %} class="is-projected"{% endif %}>
<td>
<span class="text--bold">{{ item.name }}</span>
{% if item.projected %}<span class="budget-badge">Projected</span>{% endif %}
</td>
<td>{{ item.note }}</td>
<td class="budget-amount is-negative">{{ currency }}{% include format_amount.html amount=item.amount %}</td>
</tr>
{% endfor %}
<tr class="budget-row-total">
<td><span class="text--bold">Confirmed expenses</span></td>
<td></td>
<td class="budget-amount is-negative"><span class="text--bold">{{ currency }}{% include format_amount.html amount=confirmed_expenses %}</span></td>
</tr>
{% if projected_expenses > 0 %}
<tr class="budget-row-projected-total">
<td>+ projected</td>
<td></td>
<td class="budget-amount is-negative">{{ currency }}{% include format_amount.html amount=projected_expenses %}</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
</div>
</article>
<article class="section__article is-centered">
<div class="col--100 text--align-center">
<a href="/sponsoring" class="button button--primary">
Become a Sponsor
</a>
<a href="https://ti.to/rubyconfat/2026" target="_blank" class="button button--primary">
Buy a ticket
</a>
</div>
</article>
</div>
</section>
</main>