mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 20:28:53 +00:00
rewrite: add footer
This commit is contained in:
parent
9adb17510e
commit
e355627bf0
5 changed files with 80 additions and 78 deletions
|
|
@ -1,10 +1,14 @@
|
|||
nconf = require('nconf')
|
||||
express = require 'express'
|
||||
router = new express.Router()
|
||||
|
||||
router.get '/', (req, res) ->
|
||||
res.render 'index', {'HabitRPG | Your Life, The Role Playing Game'}
|
||||
res.render 'index',
|
||||
title: 'HabitRPG | Your Life, The Role Playing Game'
|
||||
NODE_ENV: nconf.get('NODE_ENV')
|
||||
|
||||
|
||||
router.get '/partials/tasks', (req, res) -> res.render 'tasks/index'
|
||||
router.get '/partials/options', (req, res) -> res.render 'options/index'
|
||||
router.get '/partials/options', (req, res) -> res.render 'options'
|
||||
|
||||
module.exports = router
|
||||
|
|
@ -72,9 +72,9 @@ html
|
|||
#main.grid
|
||||
div(ng-view)
|
||||
|
||||
//-app:footer:footer
|
||||
footer.footer
|
||||
.container
|
||||
|
||||
.container
|
||||
h3
|
||||
a(target='_blank',href='https://workflowy.com/shared/9c77c53d-a174-d181-73a4-dc611508a936/') Roadmap
|
||||
include ./shared/footer
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,72 +0,0 @@
|
|||
<footer:>
|
||||
<footer class=footer>
|
||||
<div class=container>
|
||||
<div class='row'>
|
||||
|
||||
<div class='span3'>
|
||||
<h4>Company</h4>
|
||||
<ul class='unstyled'>
|
||||
<li><a href="/static/about">About</a></li>
|
||||
<li><a target="_blank" href="http://habitrpg.tumblr.com/">Blog</a></li>
|
||||
<li><a href="/static/team">Team</a></li>
|
||||
<li><a href="/static/extensions">Extensions</a></li>
|
||||
<li><a href="/static/faq">FAQ</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class='span3'>
|
||||
<h4>Legal</h4>
|
||||
<ul class='unstyled'>
|
||||
<li><a href="/static/privacy">Privacy</a></li>
|
||||
<li><a href="/static/terms">Terms</a></li>
|
||||
<li><strong>© 2013 OCDevel LLC</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class='span3'>
|
||||
<h4>Community</h4>
|
||||
<ul class='unstyled'>
|
||||
<li><a target="_blank" href="https://github.com/lefnire/habitrpg/issues?state=open">Submit Bug</a></li>
|
||||
<li><a target="_blank" href="https://trello.com/board/habitrpg/50e5d3684fe3a7266b0036d6">Request Feature</a></li>
|
||||
<li><a target="_blank" href="https://github.com/lefnire/habitrpg/wiki/API">API</a></li>
|
||||
<li><a href="/static/extensions">Add-ons / Extensions</a></li>
|
||||
<li><a target="_blank" href="http://community.habitrpg.com/forum">Forum</a></li>
|
||||
<li><a target="_blank" href="http://www.kickstarter.com/projects/lefnire/habitrpg-mobile">Kickstarter</a></li>
|
||||
<li><a target="_blank" href="https://www.facebook.com/Habitrpg">Facebook Page</a></li>
|
||||
<li><a target="_blank" href="http://www.reddit.com/r/habitrpg/">Reddit</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class='span3'>
|
||||
{{#if equal(_nodeEnv, 'development')}}
|
||||
<h4>Cheat</h4>
|
||||
<ul class='unstyled'>
|
||||
<li><button class='btn' x-bind="click:emulateNextDay">Emulate Next Day</button></li>
|
||||
<li><button class='btn' x-bind="click:emulateTenDays">Emulate 10 Days</button></li>
|
||||
<li><button class='btn' x-bind="click:cheat">Insta Level</button></li>
|
||||
<li><button class='btn' x-bind='click:reset'>Reset Level</button></li>
|
||||
</ul>
|
||||
{{else}}
|
||||
<h4>Social</h4>
|
||||
<div class="addthis_toolbox addthis_default_style "
|
||||
addthis:url="https://habitrpg.com"
|
||||
addthis:title="HabitRPG - Gamify Your Life">
|
||||
<table>
|
||||
<tr><td><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a></td></tr>
|
||||
<tr><td><a class="addthis_button_tweet" tw:via="habitrpg"></a></td></tr>
|
||||
<tr><td align='left'>
|
||||
<iframe src="/vendor/github-buttons/github-btn.html?user=lefnire&repo=habitrpg&type=watch&count=true"
|
||||
allowtransparency="true" frameborder="0" scrolling="0" width="85px" height="20px" ></iframe>
|
||||
</td></tr>
|
||||
<tr><td><a class="addthis_button_google_plusone" g:plusone:size="medium"></a> </td></tr>
|
||||
</table>
|
||||
</div>
|
||||
{{/}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
70
views/shared/footer.jade
Normal file
70
views/shared/footer.jade
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
footer.footer
|
||||
.container
|
||||
.row
|
||||
.span3
|
||||
h4 Company
|
||||
ul.unstyled
|
||||
li
|
||||
a(href='/static/about') About
|
||||
li
|
||||
a(target='_blank', href='http://habitrpg.tumblr.com/') Blog
|
||||
li
|
||||
a(href='/static/team') Team
|
||||
li
|
||||
a(href='/static/extensions') Extensions
|
||||
li
|
||||
a(href='/static/faq') FAQ
|
||||
.span3
|
||||
h4 Legal
|
||||
ul.unstyled
|
||||
li
|
||||
a(href='/static/privacy') Privacy
|
||||
li
|
||||
a(href='/static/terms') Terms
|
||||
.span3
|
||||
h4 Community
|
||||
ul.unstyled
|
||||
li
|
||||
a(target='_blank', href='https://github.com/lefnire/habitrpg/issues?state=open') Submit Bug
|
||||
li
|
||||
a(target='_blank', href='https://trello.com/board/habitrpg/50e5d3684fe3a7266b0036d6') Request Feature
|
||||
li
|
||||
a(target='_blank', href='https://github.com/lefnire/habitrpg/wiki/API') API
|
||||
li
|
||||
a(href='/static/extensions') Add-ons / Extensions
|
||||
li
|
||||
a(target='_blank', href='http://community.habitrpg.com/forum') Forum
|
||||
li
|
||||
a(target='_blank', href='http://www.kickstarter.com/projects/lefnire/habitrpg-mobile') Kickstarter
|
||||
li
|
||||
a(target='_blank', href='https://www.facebook.com/Habitrpg') Facebook Page
|
||||
li
|
||||
a(target='_blank', href='http://www.reddit.com/r/habitrpg/') Reddit
|
||||
.span3
|
||||
if (NODE_ENV=='production')
|
||||
h4 Social
|
||||
.addthis_toolbox.addthis_default_style(addthis:url='https://habitrpg.com', addthis:title='HabitRPG - Gamify Your Life')
|
||||
table
|
||||
tr
|
||||
td
|
||||
a.addthis_button_facebook_like(fb:like:layout='button_count')
|
||||
tr
|
||||
td
|
||||
a.addthis_button_tweet(tw:via='habitrpg')
|
||||
tr
|
||||
td(align='left')
|
||||
iframe(src='/vendor/github-buttons/github-btn.html?user=lefnire&repo=habitrpg&type=watch&count=true', allowtransparency='true', frameborder='0', scrolling='0', width='85px', height='20px')
|
||||
tr
|
||||
td
|
||||
a.addthis_button_google_plusone(g:plusone:size='medium')
|
||||
else
|
||||
h4 Cheat
|
||||
ul.unstyled
|
||||
li
|
||||
button.btn(x-bind='click:emulateNextDay') Emulate Next Day
|
||||
li
|
||||
button.btn(x-bind='click:emulateTenDays') Emulate 10 Days
|
||||
li
|
||||
button.btn(x-bind='click:cheat') Insta Level
|
||||
li
|
||||
button.btn(x-bind='click:reset') Reset Level
|
||||
Loading…
Reference in a new issue