Skip to content

Commit 8cab3fc

Browse files
committed
Renaming the data files and tidying up a little.
1 parent d0190bd commit 8cab3fc

29 files changed

+48
-83
lines changed

app/views/showntells.html

+46-39
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,52 @@ <h1 class="heading-xxlarge" style="margin-bottom:60px;">Show &lsquo;n&rsquo; Tel
88

99
{{ showntells | log }}
1010

11-
{% if today %}
12-
<h2 class="heading-large">Today
13-
{% if loc %}in {{ loc }}{% endif %}
14-
</h2>
15-
{% endif %}
16-
17-
{% if all %}
18-
<h2 class="heading-large">All
19-
{% if loc %}in {{ loc }}{% endif %}
20-
</h2>
21-
{% endif %}
22-
23-
{% if showntells.length %}
24-
<table>
25-
<thead>
26-
<tr><th>Date</th><th>Project</th>{% if not loc %}<th>Location</th>{% endif %}</tr>
27-
</thead>
28-
<tbody>
29-
{% for item in showntells %}
30-
<tr class="standup">
31-
{% if today %}
32-
<td>{{ item.date | formatDate("h:mma") }}</td>
33-
{% else %}
34-
<td>{{ item.date | formatDate("h:mma dddd - Do MMMM YYYY") }}</td>
35-
{% endif %}
36-
{# <td><a href="">{{ item.name }}</a></td> #}
37-
<td><a href="/projects/{{ item.id }}/{{ item.name | slugify }}">{{ item.name }}</a></td>
38-
{% if not loc %}
39-
<td><a href="/showntells/all/{{ item.location }}">{{ item.location }}</a></td>
40-
{% endif %}
41-
</tr>
42-
{% endfor %}
43-
</tbody>
44-
</table>
45-
{% else %}
46-
<p>There are no show &lsquo;n&rsquo; tells {% if today %}
47-
today {% if loc %}in {{ loc }}{% endif %}
48-
{% endif %}</p>
49-
{% endif %}
11+
<div class="grid-row">
12+
<div class="column-two-thirds">
13+
{% if today %}
14+
<h2 class="heading-large">Today
15+
{% if loc %}in {{ loc }}{% endif %}
16+
</h2>
17+
{% endif %}
18+
19+
{% if all %}
20+
<h2 class="heading-large">All
21+
{% if loc %}in {{ loc }}{% endif %}
22+
</h2>
23+
{% endif %}
24+
25+
{% if showntells.length %}
26+
<table>
27+
<thead>
28+
<tr><th>Date</th><th>Project</th>{% if not loc %}<th>Location</th>{% endif %}</tr>
29+
</thead>
30+
<tbody>
31+
{% for item in showntells %}
32+
<tr class="standup">
33+
{% if today %}
34+
<td>{{ item.date | formatDate("h:mma") }}</td>
35+
{% else %}
36+
<td>{{ item.date | formatDate("h:mma dddd - Do MMMM YYYY") }}</td>
37+
{% endif %}
38+
{# <td><a href="">{{ item.name }}</a></td> #}
39+
<td><a href="/projects/{{ item.id }}/{{ item.name | slugify }}">{{ item.name }}</a></td>
40+
{% if not loc %}
41+
<td><a href="/showntells/all/{{ item.location }}">{{ item.location }}</a></td>
42+
{% endif %}
43+
</tr>
44+
{% endfor %}
45+
</tbody>
46+
</table>
47+
{% else %}
48+
<p>There are no show &lsquo;n&rsquo; tells {% if today %}
49+
today {% if loc %}in {{ loc }}{% endif %}
50+
{% endif %}</p>
51+
{% endif %}
52+
</div><!-- column -->
53+
<div class="column-third">
54+
55+
</div><!-- column -->
56+
</div><!-- row -->
5057

5158
</main>
5259

app/views/standups.html

-18
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/projects/defaults.js

-24
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ var path = require('path'),
1616
/*
1717
Load all the project data from the files.
1818
*/
19-
var defaults = JSON.parse(fs.readFileSync(__dirname + '/lib/projects/defaults.js').toString());
19+
var defaults = JSON.parse(fs.readFileSync(__dirname + '/lib/projects/defaults.json').toString());
2020
var files = fs.readdirSync(__dirname + '/lib/projects/');
2121
app.locals.data = [];
2222
_.each(files,function(el)
2323
{
24-
if (el == 'defaults.js') return;
24+
if (el == 'defaults.json') return;
2525
var file = fs.readFileSync(__dirname + '/lib/projects/'+el).toString();
2626
try {
2727
var json = merge(true,defaults,JSON.parse(file));

0 commit comments

Comments
 (0)