Skip to content

Commit 2285ee7

Browse files
committed
added TourBeginningDescription site setting (dehardcoding Codidactyl)
1 parent 9c30dee commit 2285ee7

2 files changed

Lines changed: 25 additions & 15 deletions

File tree

app/views/tour/index.html.erb

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<div class="grid">
2-
<div class="grid--cell codidactyl">
3-
<img src="/assets/codidactyl.png" alt="Codidactyl">
2+
<div class="grid--cell codidactyl">
3+
<img src="/assets/codidactyl.png" alt="Codidactyl">
4+
</div>
5+
<div class="grid--cell is-flexible">
6+
<div class="widget">
7+
<div class="widget--body">
8+
<%= raw(sanitize(render_markdown(SiteSetting['TourBeginningDescription']), scrubber: scrubber)) %>
9+
</div>
10+
<div class="widget--footer">
11+
<a href="/tour/q" class="button is-filled">Let's go</a>
12+
<a href="/" class="button">No, thanks</a>
13+
</div>
414
</div>
5-
<div class="grid--cell is-flexible">
6-
<div class="widget">
7-
<div class="widget--body">
8-
<p>Hi!</p>
9-
<p>I'm your friendly neighbourhood <a href="https://en.wikipedia.org/wiki/Pterodactylus">Codidactyl</a> and I'd like to introduce you to this website. Don't worry: It doesn't take long and you can abort at any time.</p>
10-
</div>
11-
<div class="widget--footer">
12-
<a href="/tour/q" class="button is-filled">Let's go</a>
13-
<a href="/" class="button">No, thanks</a>
14-
</div>
15-
</div>
16-
</div>
17-
</div>
15+
</div>
16+
</div>

db/seeds/site_settings.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,17 @@
582582
description: >
583583
Automatically expand vote summary entries for the last X days, X being the value of this setting. Set to 0 to expand all entries.
584584
585+
- name: TourBeginningDescription
586+
value: >
587+
<p>Hi!</p>
588+
<p>I'm your friendly neighbourhood <a href="https://en.wikipedia.org/wiki/Pterodactylus">Codidactyl</a> and I'd like to introduce you to this website.
589+
Don't worry: It doesn't take long and you can abort at any time.</p>
590+
value_type: text
591+
community_id: ~
592+
category: Tour
593+
description: >
594+
Displayed as the first element on the tour page. Markdown allowed.
595+
585596
- name: TourMoreBeginningDescription
586597
value: >
587598
<p>Yay!</p>

0 commit comments

Comments
 (0)