clear local storage page added

changed submit bug to clear browser data

feat(views): Style clear local storage button
This commit is contained in:
darkmeep
2015-12-10 21:34:44 -05:00
committed by Blade Barringer
parent e5c9924141
commit 1c261056fe
5 changed files with 32 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -18,6 +18,7 @@
"choreSample4": "Tidy One Room",
"choreSample5": "Wash and Dry a Load of Clothes",
"chores": "Chores",
"clearBrowserData": "Clear Browser Data",
"communityBug": "Submit Bug",
"communityExtensions": "Add-ons & Extensions",
"communityFacebook": "Facebook",
@@ -164,6 +165,8 @@
"teams": "Teams",
"terms": "Terms and Conditions",
"testimonialHeading": "What people say...",
"tryFirst": "If you are experiencing problems with Habitica, click the button below to clear cookies and local storage for this website (other websites will not be affected). You will need to log in again after doing this, so first be sure that you know your log-in details, which can be found at Settings -> <%= linkStart %>Site<%= linkEnd %>.",
"tryNext": "If the problem persists, please <%= linkStart %>Report a Bug<%= linkEnd %> if you haven't already.",
"tutorials": "Tutorials",
"unlockByline1": "Achieve your goals and level up.",
"unlockByline2": "Unlock new motivational tools, such as pet collecting, random rewards, spell-casting, and more!",

View File

@@ -18,7 +18,7 @@ router.get('/', i18n.getUserLanguage, locals, function(req, res) {
// -------- Static Pages --------
var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact', 'plans', 'new-stuff', 'community-guidelines', 'old-news', 'press-kit', 'faq', 'overview', 'apps'];
var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact', 'plans', 'new-stuff', 'community-guidelines', 'old-news', 'press-kit', 'faq', 'overview', 'apps', 'clear-browser-data'];
_.each(pages, function(name){
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {

View File

@@ -42,7 +42,7 @@ footer.footer(ng-controller='FooterCtrl')
li
a(target='_blank', href='/static/community-guidelines')=env.t('communityGuidelines')
li
a(target='_blank', href='https://github.com/HabitRPG/habitrpg/issues/2760')=env.t('communityBug')
a(target='_blank', href='/static/clear-browser-data')=env.t('communityBug')
li
a(target='_blank', href='https://trello.com/c/odmhIqyW/440-read-first-table-of-contents')=env.t('communityFeature')
li

View File

@@ -0,0 +1,22 @@
extends ./layout
block vars
- var layoutEnv = env
- var menuItem = 'clear-browser-data'
block title
title Habitica &VerticalLine;&nbsp;
=env.t('clearBrowserData')
block content
.row
.col-md-12
.page-header
h1=env.t('clearBrowserData')
p!=env.t('tryFirst', {linkStart: "<a href='/#/options/settings/settings' target='_blank'>", linkEnd: "</a>"})
br
p.text-center
button.btn.btn-lg.btn-danger(onclick='localStorage.clear()') Clear local storage
br
p!=env.t('tryNext', {linkStart: "<a href='https://github.com/HabitRPG/habitrpg/issues/2760' target='_blank'>", linkEnd: "</a>"})