Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11723815
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
10 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/data/.gitkeep b/src/data/.gitkeep
deleted file mode 100644
index e054433..0000000
--- a/src/data/.gitkeep
+++ /dev/null
@@ -1 +0,0 @@
-# You can delete this file. It's just here to make Git happy.
diff --git a/src/data/communities.yml b/src/data/communities.yml
new file mode 100644
index 0000000..9f97eac
--- /dev/null
+++ b/src/data/communities.yml
@@ -0,0 +1,4 @@
+- nasqueron
+- vikidia
+- wikimedia
+- wolfplex
diff --git a/src/data/dev_resources.yml b/src/data/dev_resources.yml
new file mode 100644
index 0000000..e600fa3
--- /dev/null
+++ b/src/data/dev_resources.yml
@@ -0,0 +1,27 @@
+- workboard:
+ title: Project workboard
+ link:
+ href: https://devcentral.nasqueron.org/tag/d%C3%A6ghrefn/
+ text: "#Dæghrefn"
+ content: bugs and tasks
+
+- rVIPER:
+ title: Core code
+ link:
+ href: https://devcentral.nasqueron.org/diffusion/VIPER/
+ text: rVIPER
+ content: TCL
+
+- rDWD:
+ title: Wikidata access layer
+ link:
+ href: https://devcentral.nasqueron.org/diffusion/DWD/
+ text: rDWD
+ content: Python
+
+- rVIPERWWW:
+ title: This site
+ link:
+ href: https://devcentral.nasqueron.org/diffusion/VIPERWWW/
+ text: rVIPERWWW
+ content: HTML, CSS, Gulp
diff --git a/src/data/doc_links.yml b/src/data/doc_links.yml
new file mode 100644
index 0000000..a7c2dc4
--- /dev/null
+++ b/src/data/doc_links.yml
@@ -0,0 +1,9 @@
+- wolfplex:
+ url: https://www.wolfplex.be/wiki/D%C3%A6ghrefn
+ location: On Wolfplex wiki
+ content: describes server commands
+
+- wikidata:
+ url: https://www.wikidata.org/wiki/User:D%C3%A6ghrefnBot
+ location: On Wikidata
+ content: describes Wikidata commands
diff --git a/src/data/tasks.yml b/src/data/tasks.yml
new file mode 100644
index 0000000..b1d9edc
--- /dev/null
+++ b/src/data/tasks.yml
@@ -0,0 +1,14 @@
+request_channel:
+ action: Request new channel
+ url: https://devcentral.nasqueron.org/maniphest/task/edit/form/1/
+ parameters:
+ tags: dæghrefn
+ subscribers: Dereckson
+ title: "Add Dæghrefn to <write here the channel name>"
+ description: "[Write here what problems you want the bot to solve.]"
+
+report_issue:
+ action: Report issue
+ url: https://devcentral.nasqueron.org/maniphest/task/edit/form/1/
+ parameters:
+ tags: dæghrefn
diff --git a/src/helpers/ucfirst.js b/src/helpers/ucfirst.js
new file mode 100644
index 0000000..7e8e6bf
--- /dev/null
+++ b/src/helpers/ucfirst.js
@@ -0,0 +1,16 @@
+/**
+ * Handlebars helper to capitalize.
+ *
+ * @param {string} str - The string to capitalize the first character
+ * @example
+ * {{ucfirst foo}}
+ * @returns string The string capitalized
+ */
+module.exports = function (str) {
+ if (str && typeof str === "string") {
+ return str.charAt(0).toUpperCase() + str.slice(1);
+ }
+
+ console.warn("helpers: ucfirst called with a non string parameter.");
+ return '';
+}
diff --git a/src/layouts/default.html b/src/layouts/default.html
index 5426306..ede486b 100644
--- a/src/layouts/default.html
+++ b/src/layouts/default.html
@@ -1,19 +1,19 @@
{{!-- This is the base layout for your project, and will be used on every page. --}}
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dæghrefn</title>
- <link rel="stylesheet" href="{{root}}assets/css/app.css">
+ <link rel="stylesheet" href="{{ root }}assets/css/app.css">
<link href='https://fonts.googleapis.com/css?family=Kreon' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Arimo:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
{{!-- Pages you create in the src/pages/ folder are inserted here when the flattened page is created. --}}
{{> body}}
-<script src="{{root}}assets/js/app.js"></script>
+<script src="{{ root }}assets/js/app.js"></script>
</body>
</html>
diff --git a/src/pages/index.html b/src/pages/index.html
index 5a87417..33f5067 100644
--- a/src/pages/index.html
+++ b/src/pages/index.html
@@ -1,91 +1,109 @@
<header id="welcome">
<div class="row hero">
<div class="large-10 large-offset-1 columns">
<h1>Welcome to Dæghrefn.</h1>
<h2>Packed with utilities. For Freenode communities.</h2>
</div>
</div>
</header>
<div class="darken">
<section id="actions">
<div class="row">
<div class="large-3 large-offset-1 text-center large-text-left columns">
<i class="fi-book huge"></i>
</div>
<div class="large-8 columns">
<h3>Documentation</h3>
<p>You use some Dæghrefn feature? You can contribute to write documentation.</p>
<p>Currently, some elements could be found at the following places:</p>
<ul>
- <li><a href="https://www.wolfplex.be/wiki/D%C3%A6ghrefn">On Wolfplex wiki</a> — describes server commands</li>
- <li><a href="https://www.wikidata.org/wiki/User:D%C3%A6ghrefnBot">On Wikidata</a> — describes Wikidata commands</li>
+ {{#each doc_links}}
+ <li><a href="{{ url }}">{{ location }}</a> — {{ content }}</li>
+ {{/each}}
</ul>
</div>
</div>
<div class="row">
<div class="large-3 large-offset-1 text-center large-text-left columns">
<i class="fi-torsos-female-male huge"></i>
</div>
<div class="large-8 columns">
<h3>Communities we serve</h3>
<p>Dæghrefn and Wearg live on the IRC Freenode network, where any channel could benefit of our solutions.</p>
<p>The server infrastructure is maintained by Nasqueron as a service offered to the free culture communities.</p>
<div class="row small-up-1 medium-up-2 large-up-4 text-center blockgrid white black-margin">
- <div class="column">Nasqueron<br /><img src="{{root}}assets/img/logo-nasqueron.png"></div>
- <div class="column">Vikidia<br /><img src="{{root}}assets/img/logo-vikidia.png"></div>
- <div class="column">Wikimedia<br /><img src="{{root}}assets/img/logo-wikimedia.png"></div>
- <div class="column">Wolfplex<br /><img src="{{root}}assets/img/logo-wolfplex.png"></div>
+ {{#each communities}}
+ <div class="column">
+ {{ ucfirst this }}<br />
+ <img src="{{ root }}assets/img/logo-{{ this }}.png">
+ </div>
+ {{/each}}
</div>
</div>
</div>
<div class="row">
<div class="large-3 large-offset-1 text-center large-text-left columns">
<i class="fi-mountains huge"></i>
</div>
<div class="large-8 columns">
<h3>Add a channel</h3>
<p>We can add new channels to Dæghrefn if you've a specific
need for an utility general-purpose bot.</p>
<p>
<strong>CI:</strong> Another bot, Wearg, is connected to
a RabbitMQ message broker, fuelled by our
<a href="https://github.com/nasqueron/notifications/tree/master/app">
notifications center
</a>
to process events from Phabricator, GitHub or Docker Hub.
This can be used to notify channels about new commits, pull
requests on GitHub, etc.
That can be adapted to received events from other systems.
</p>
<p>Explain your needs and we'll offer you a solution. We create
<em>sur mesure</em> code for each community.</p>
- <a href="https://devcentral.nasqueron.org/maniphest/task/edit/form/1/?tags=d%C3%A6ghrefn&subscribers=Dereckson&title=Add%20D%C3%A6ghrefn%20to%20%3Cwrite%20here%20the%20channel%20name%3E&description=[Write%20here%20what%20problems%20you%20want%20the%20bot%20to%20solve.]" class="button round">Request new channel</a>
+ <form action="{{ tasks.request_channel.url }}">
+ {{#each tasks.request_channel.parameters}}
+ <input type="hidden" name="{{ @key }}" value="{{ this }}">
+ {{/each}}
+ <input type="submit" class="button round"
+ value="{{ tasks.request_channel.action }}">
+ </form>
</div>
</div>
<div class="row">
<div class="large-3 large-offset-1 text-center large-text-left columns">
<i class="fi-trees huge"></i>
</div>
<div class="large-8 columns">
<h3>Development</h3>
<p>All the code we write is open source and released under BSD-2-Clause license.<br />
A few third-party software components could have their own licence.</p>
<p>You're welcome to contribute.</p>
<ul>
- <li><strong>Project workboard:</strong> <a href="https://devcentral.nasqueron.org/tag/d%C3%A6ghrefn/">#Dæghrefn</a> (bugs and tasks)</li>
- <li><strong>Core code:</strong> <a href="https://devcentral.nasqueron.org/diffusion/VIPER/">rVIPER</a> (TCL)</li>
- <li><strong>Wikidata access layer:</strong> <a href="https://devcentral.nasqueron.org/diffusion/DWD/">rDWD</a> (Python)</li>
- <li><strong>This site:</strong> <a href="https://devcentral.nasqueron.org/diffusion/VIPERWWW/">rVIPERWWW</a> (HTML, CSS, Gulp)</li>
+ {{#each dev_resources}}
+ <li>
+ <strong>{{ title }}:</strong>
+ <a href="{{ link.href }}">{{ link.text }}</a>
+ ({{content}})
+ </li>
+ {{/each}}
</ul>
- <a href="https://devcentral.nasqueron.org/maniphest/task/edit/form/1/?tags=d%C3%A6ghrefn" class="button round">Report an issue</a>
+ <form action="{{ tasks.report_issue.url }}">
+ {{#each tasks.report_issue.parameters}}
+ <input type="hidden" name="{{ @key }}" value="{{ this }}">
+ {{/each}}
+ <input type="submit" class="button round"
+ value="{{ tasks.report_issue.action }}">
+ </form>
</div>
</div>
</section>
{{> footer}}
</div>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 11:29 (7 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2990680
Default Alt Text
(10 KB)
Attached To
Mode
rVIPERWWW Dæghrefn website
Attached
Detach File
Event Timeline
Log In to Comment