mirror of
https://github.com/reality/dbot.git
synced 2024-12-03 17:39:28 +01:00
Merge git://github.com/reality/depressionbot into database
This commit is contained in:
commit
cca4fadc42
24
LICENCE
24
LICENCE
@ -1,18 +1,14 @@
|
||||
Copyright (c) 2012-2013 Luke Slater (tinmachin3@gmail.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
@ -92,7 +92,8 @@ var pages = function(dbot) {
|
||||
"languageeng": dbot.t("en"),
|
||||
"languageprog": dbot.t("langhead-progress"),
|
||||
"languagetrans": dbot.t("langhead-translations"),
|
||||
"languagetranshead": dbot.t("translations")
|
||||
"languagetranshead": dbot.t("translations"),
|
||||
"pullreqs": dbot.t("outstanding-pullreq")
|
||||
});
|
||||
},
|
||||
};
|
||||
|
@ -16,9 +16,9 @@ var project = function(dbot) {
|
||||
list.push(dbot.t("dent-account", {
|
||||
"username": dbot.config.dent.username
|
||||
}));
|
||||
}
|
||||
if(_.has(dbot.config.dent.dentQuotes)) {
|
||||
list.push(dbot.t("dent-push"));
|
||||
if(_.has(dbot.config.dent.dentQuotes)) {
|
||||
list.push(dbot.t("dent-push"));
|
||||
}
|
||||
}
|
||||
if(_.has(dbot.modules,'link')){
|
||||
if(dbot.config.link.autoTitle){
|
||||
|
@ -1,7 +1,4 @@
|
||||
{
|
||||
"dbotintro": {
|
||||
"en": "{botname} lorem ipsum dolor sit amet"
|
||||
},
|
||||
"dbotspeaks": {
|
||||
"en": "{name} speaks {lang}",
|
||||
"de": "{name} spricht {lang} ({langen})",
|
||||
@ -10,10 +7,12 @@
|
||||
"nl": "{name} spreekt {lang} ({langen})"
|
||||
},
|
||||
"thanks": {
|
||||
"en": "With thanks to:"
|
||||
"en": "With thanks to:",
|
||||
"fr": "Merci à:"
|
||||
},
|
||||
"credits": {
|
||||
"en": "Authors"
|
||||
"en": "Authors",
|
||||
"fr": "Développeurs"
|
||||
},
|
||||
"pagetitle": {
|
||||
"en": "{botname} web interface",
|
||||
@ -115,6 +114,7 @@
|
||||
},
|
||||
"milestones": {
|
||||
"en": "Milestones"
|
||||
"fr": "étapes"
|
||||
},
|
||||
"milestoneprog": {
|
||||
"en": "Progress",
|
||||
@ -173,21 +173,40 @@
|
||||
"en": "{branch}"
|
||||
},
|
||||
"git": {
|
||||
"en": "version control"
|
||||
"en": "version control",
|
||||
"de": "Versionsverwaltung",
|
||||
"es": "Control de versiones",
|
||||
"fr": "Festion de versions",
|
||||
"it": "Controllo versione",
|
||||
"nl": "Versiebeheersysteem"
|
||||
},
|
||||
"langhead-current": {
|
||||
"en": "Current"
|
||||
"en": "Current",
|
||||
"fr": "Courant"
|
||||
},
|
||||
"langhead-translations": {
|
||||
"en": "Completion"
|
||||
"en": "Completion",
|
||||
"fr": "Achèvement"
|
||||
},
|
||||
"translations": {
|
||||
"en": "Translations"
|
||||
"en": "Translations",
|
||||
"fr": "Traductions"
|
||||
},
|
||||
"langhead-progress": {
|
||||
"en": "Translation Progress"
|
||||
"en": "Translation Progress",
|
||||
"fr": "Avancement de la Traduction"
|
||||
},
|
||||
"langhead-native": {
|
||||
"en": "Native"
|
||||
"en": "Native",
|
||||
"fr": "Natale"
|
||||
},
|
||||
"outstanding-pullreq": {
|
||||
"en": "There are outstanding pull requests"
|
||||
},
|
||||
"oaosidl": {
|
||||
"en": "The Official Aberystwyth Open Source International Development League"
|
||||
},
|
||||
"link-autotitle": {
|
||||
"en": "Automatically titling links in channels"
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,10 @@ pre#gitdiff {
|
||||
width:80;
|
||||
margin:auto;
|
||||
text-transform:none;
|
||||
clear:both;
|
||||
}
|
||||
ul#credits {
|
||||
text-transform:capitalize;
|
||||
}
|
||||
div#main {
|
||||
font-size:18px;
|
||||
@ -19,6 +23,7 @@ p.intro {
|
||||
border:1px solid #ccc;
|
||||
padding:20px;
|
||||
border-radius:4px;
|
||||
text-transform:none;
|
||||
}
|
||||
div.progress.open {
|
||||
background-color: #f4fff4;
|
||||
@ -63,3 +68,39 @@ li {
|
||||
#footer {
|
||||
font-size:80%;
|
||||
}
|
||||
h2 {
|
||||
margin-top:40px;
|
||||
margin-bottom:30px;
|
||||
}
|
||||
h3 {
|
||||
margin-top:30px;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
#translations td {
|
||||
text-transform:none;
|
||||
}
|
||||
p#pullreq {
|
||||
float:right;
|
||||
border-left:1px solid #ccc;
|
||||
border-top:1px solid #ccc;
|
||||
border-top-left-radius:5px;
|
||||
padding:10px;
|
||||
margin:5px;
|
||||
display:none;
|
||||
}
|
||||
p#revnum {
|
||||
float:left;
|
||||
border-right:1px solid #ccc;
|
||||
border-top:1px solid #ccc;
|
||||
border-top-right-radius: 5px;
|
||||
margin:5px;
|
||||
padding:10px;
|
||||
margin-bottom:0px;
|
||||
}
|
||||
h2 {
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-top:1px solid #ccc;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
width:40%;
|
||||
}
|
||||
|
@ -8,12 +8,13 @@ html(lang='#{curr839}')
|
||||
link(rel='stylesheet', type='text/css', href='/styles.css')
|
||||
link(rel="stylesheet", href="/project.css")
|
||||
title #{pagetitle}
|
||||
- var mstone = "milestone"
|
||||
style(type="text/css")
|
||||
each milestone in milestones
|
||||
- current = mstone+milestone.number
|
||||
- wdth = ((milestone.open_issues/(milestone.open_issues + milestone.closed_issues))*100)
|
||||
.current { width: wdth% }
|
||||
script
|
||||
$(document).ready(function() {
|
||||
$.get("https://api.github.com/repos/#{repo}/pulls", function(data) {
|
||||
if ($.parseJSON(data).length) { $("#pullreq").show();}
|
||||
});
|
||||
});
|
||||
|
||||
body
|
||||
div.container
|
||||
div#page
|
||||
@ -22,12 +23,14 @@ html(lang='#{curr839}')
|
||||
p.intro
|
||||
#{dquote}
|
||||
section#git
|
||||
h3 #{development}
|
||||
p.center
|
||||
h2 #{development}
|
||||
p#pullreq
|
||||
a(href="https://github.com/"+repo+"/pulls") #{pullreqs}
|
||||
p#revnum
|
||||
#{revnum}
|
||||
pre#gitdiff
|
||||
#{diff}
|
||||
h4 #{milestoneprog}
|
||||
h3 #{milestonehead}
|
||||
table#milestones.center
|
||||
tr
|
||||
th #{milestonename}
|
||||
@ -36,9 +39,9 @@ html(lang='#{curr839}')
|
||||
th #{closedmilestone}
|
||||
each milestone in milestones
|
||||
- var wdth = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
|
||||
tr(id=mstone+milestone.number)
|
||||
tr(id="milestone"+milestone.number)
|
||||
td
|
||||
a(href=milestone.url)
|
||||
a(href="https://github.com/"+repo+"/issues?milestone="+milestone.number)
|
||||
#{milestone.title}
|
||||
td
|
||||
div.progress(class=milestone.state)
|
||||
@ -47,8 +50,10 @@ html(lang='#{curr839}')
|
||||
print #{Math.round(wdth)+"%"}
|
||||
td #{milestone.open_issues}
|
||||
td #{milestone.closed_issues}
|
||||
h4 #{languagetranshead}
|
||||
table
|
||||
a(#href="https://github.com/"+repo+"/")
|
||||
#{propaganda}
|
||||
h3 #{languagetranshead}
|
||||
table#translations
|
||||
tr
|
||||
th #{languagecurr}
|
||||
th #{languagenati}
|
||||
@ -75,21 +80,23 @@ html(lang='#{curr839}')
|
||||
|
||||
print #{Math.round(w)+"%"}
|
||||
td #{language.count} / #{translation.en.count}
|
||||
h4 #{credits}
|
||||
h3 #{credits}
|
||||
#{thanks}
|
||||
ul
|
||||
ul#credits
|
||||
each author in authors
|
||||
li
|
||||
#{author}
|
||||
section#config
|
||||
h3 #{config}
|
||||
ul
|
||||
li #{currlang}
|
||||
li #{debugmode}
|
||||
h4 #{loadmod}
|
||||
ul#modules
|
||||
each module in modules
|
||||
li #{module}
|
||||
h2 #{config}
|
||||
ul
|
||||
li #{currlang}
|
||||
li #{debugmode}
|
||||
each config in configList
|
||||
li #{config}
|
||||
h3 #{loadmod}
|
||||
ul#modules
|
||||
each module in modules
|
||||
li #{module}
|
||||
section#footer
|
||||
p
|
||||
#{currver}
|
||||
|
Loading…
Reference in New Issue
Block a user