2021-03-21 19:36:32 +01:00
|
|
|
MediaCMS.url = {
|
|
|
|
home: "/",
|
2021-07-11 17:01:34 +02:00
|
|
|
search: "/search",
|
2021-03-21 19:36:32 +01:00
|
|
|
latestMedia: "/latest",
|
|
|
|
featuredMedia: "/featured",
|
|
|
|
recommendedMedia: "/recommended",
|
|
|
|
members: "/members",
|
|
|
|
/* Error pages */
|
|
|
|
error404: "/error",
|
2021-07-11 17:01:34 +02:00
|
|
|
/* Archive pages */
|
2021-03-21 19:36:32 +01:00
|
|
|
tags: "/tags",
|
|
|
|
categories: "/categories",
|
|
|
|
/* User pages */
|
|
|
|
likedMedia: "/liked",
|
|
|
|
history: "/history",
|
2021-07-11 17:01:34 +02:00
|
|
|
/* Add pages */
|
2021-03-21 19:36:32 +01:00
|
|
|
addMedia: "/upload",
|
2021-07-11 17:01:34 +02:00
|
|
|
/* Profile/account edit pages */
|
2021-03-21 19:36:32 +01:00
|
|
|
editProfile: "{{user.edit_url}}",
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
signout: "/accounts/logout/",
|
|
|
|
editChannel: "{{user.default_channel_edit_url}}",
|
|
|
|
changePassword: "/accounts/password/change/",
|
|
|
|
/* Administration pages */
|
|
|
|
{% if IS_MEDIACMS_ADMIN %}admin: '/admin',{% endif %}
|
|
|
|
/* Management pages */
|
|
|
|
{% if IS_MEDIACMS_EDITOR %}manageMedia: "/manage/media",{% endif %}
|
|
|
|
{% if IS_MEDIACMS_MANAGER %}manageUsers: "/manage/users",{% endif %}
|
|
|
|
{% if IS_MEDIACMS_EDITOR %}manageComments: "/manage/comments",{% endif %}
|
|
|
|
{% else %}
|
|
|
|
signin: "/accounts/login/",
|
|
|
|
register: "/accounts/signup/",
|
|
|
|
{% endif %}
|
|
|
|
};
|