mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
clear local storage page added
changed submit bug to clear browser data feat(views): Style clear local storage button
This commit is contained in:
committed by
Blade Barringer
parent
e5c9924141
commit
1c261056fe
6
common/dist/sprites/habitrpg-shared.css
vendored
6
common/dist/sprites/habitrpg-shared.css
vendored
File diff suppressed because one or more lines are too long
@@ -18,6 +18,7 @@
|
|||||||
"choreSample4": "Tidy One Room",
|
"choreSample4": "Tidy One Room",
|
||||||
"choreSample5": "Wash and Dry a Load of Clothes",
|
"choreSample5": "Wash and Dry a Load of Clothes",
|
||||||
"chores": "Chores",
|
"chores": "Chores",
|
||||||
|
"clearBrowserData": "Clear Browser Data",
|
||||||
"communityBug": "Submit Bug",
|
"communityBug": "Submit Bug",
|
||||||
"communityExtensions": "Add-ons & Extensions",
|
"communityExtensions": "Add-ons & Extensions",
|
||||||
"communityFacebook": "Facebook",
|
"communityFacebook": "Facebook",
|
||||||
@@ -164,6 +165,8 @@
|
|||||||
"teams": "Teams",
|
"teams": "Teams",
|
||||||
"terms": "Terms and Conditions",
|
"terms": "Terms and Conditions",
|
||||||
"testimonialHeading": "What people say...",
|
"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",
|
"tutorials": "Tutorials",
|
||||||
"unlockByline1": "Achieve your goals and level up.",
|
"unlockByline1": "Achieve your goals and level up.",
|
||||||
"unlockByline2": "Unlock new motivational tools, such as pet collecting, random rewards, spell-casting, and more!",
|
"unlockByline2": "Unlock new motivational tools, such as pet collecting, random rewards, spell-casting, and more!",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ router.get('/', i18n.getUserLanguage, locals, function(req, res) {
|
|||||||
|
|
||||||
// -------- Static Pages --------
|
// -------- 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){
|
_.each(pages, function(name){
|
||||||
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ footer.footer(ng-controller='FooterCtrl')
|
|||||||
li
|
li
|
||||||
a(target='_blank', href='/static/community-guidelines')=env.t('communityGuidelines')
|
a(target='_blank', href='/static/community-guidelines')=env.t('communityGuidelines')
|
||||||
li
|
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
|
li
|
||||||
a(target='_blank', href='https://trello.com/c/odmhIqyW/440-read-first-table-of-contents')=env.t('communityFeature')
|
a(target='_blank', href='https://trello.com/c/odmhIqyW/440-read-first-table-of-contents')=env.t('communityFeature')
|
||||||
li
|
li
|
||||||
|
|||||||
22
website/views/static/clear-browser-data.jade
Normal file
22
website/views/static/clear-browser-data.jade
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
extends ./layout
|
||||||
|
|
||||||
|
block vars
|
||||||
|
- var layoutEnv = env
|
||||||
|
- var menuItem = 'clear-browser-data'
|
||||||
|
|
||||||
|
block title
|
||||||
|
title Habitica |
|
||||||
|
=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>"})
|
||||||
Reference in New Issue
Block a user