diff --git a/.gitignore b/.gitignore
index 7ae63a58f6..93d4ccda41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,5 +8,6 @@ sftp-config.json
config.json
public/config.json
public/css/*.css
+public/themes/*
*.sublime-project
*.sublime-workspace
diff --git a/public/css/category.less b/public/css/category.less
index f9776d2d16..4df36256c1 100644
--- a/public/css/category.less
+++ b/public/css/category.less
@@ -146,7 +146,8 @@
line-height: 16px;
margin-left: 1px;
padding: 5px 5px 5px 0px;
-
+ list-style-type: none;
+
li {
clear: both;
line-height: 16px;
@@ -163,6 +164,7 @@
p {
display: block;
padding-left:5px;
+ padding-top: 2px;
overflow: hidden;
height: 32px;
margin-bottom: 0.5em;
diff --git a/public/images/themes/default.png b/public/images/themes/default.png
new file mode 100644
index 0000000000..2b2e6a05e7
Binary files /dev/null and b/public/images/themes/default.png differ
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 3aa10071b8..f9087966d0 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -35,13 +35,13 @@ var ajaxify = {};
url = url.slice(RELATIVE_PATH.length);
}
- var tpl_url = templates.get_custom_map(url);
+ var tpl_url = templates.get_custom_map(url.split('?')[0]);
if (tpl_url == false && !templates[url]) {
if(url === '' || url === '/') {
tpl_url = 'home';
} else {
- tpl_url = url.split('/')[0];
+ tpl_url = url.split('/')[0].split('?')[0];
}
} else if (templates[url]) {
@@ -75,10 +75,6 @@ var ajaxify = {};
return false;
}
- ajaxify.onclick = function(ev) {
-
- }
-
$('document').ready(function() {
if (!window.history || !window.history.pushState) return; // no ajaxification for old browsers
diff --git a/public/src/forum/account.js b/public/src/forum/account.js
index de9c7539fd..ae87fa4e1b 100644
--- a/public/src/forum/account.js
+++ b/public/src/forum/account.js
@@ -13,8 +13,11 @@
var editLink = $('#editLink');
var followBtn = $('#follow-btn');
-
- if( yourid !== theirid) {
+ if(yourid === "0") {
+ editLink.hide();
+ followBtn.hide();
+ }
+ else if(yourid !== theirid) {
editLink.hide();
if(isFollowing)
followBtn.hide();
diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js
index 54d0140be2..66b04a9de2 100644
--- a/public/src/forum/admin/themes.js
+++ b/public/src/forum/admin/themes.js
@@ -89,14 +89,17 @@ var nodebb_admin = (function(nodebb_admin) {
for(var x=0,numThemes=themes.length;x' +
'
' + themes[x].description + '
' + + '' + + themes[x].description + + (themes[x].url ? ' (Homepage)' : '') + + '
' + '