@@ -20,6 +20,14 @@ module.exports = function(crowi, app, locals) {
return Config.isUploadable(config);
};
+ locals.isUserPageList = function(path) {
+ if (path.match(/^\/user\/[^\/]+\/$/)) {
+ return true;
+ }
+
+ return false;
+ };
locals.user_page_root = function(user) {
if (!user) {
return '';
@@ -160,7 +160,7 @@
{% block side_header %}
-{% if not page %}
+{% if not page and not isUserPageList(path) %}
<div class="portal-side">
<div class="portal-form-button">
<button class="btn btn-primary" id="create-portal-button">Create Portal</button>