mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-19 21:26:05 -05:00
Added: a) playlists' functions/pages, b) advanced filters in search results page, c) role filter in users management page, d) media search field in navigation tabs of profiles' pages
This commit is contained in:
17
templates/cms/playlist.html
Executable file
17
templates/cms/playlist.html
Executable file
@@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block headtitle %}Playlist - {{PORTAL_NAME}}{% endblock headtitle %}
|
||||
|
||||
{% block topimports %}
|
||||
<link href="{% static "css/playlist.css" %}" rel="preload" as="style">
|
||||
<link href="{% static "css/playlist.css" %}" rel="stylesheet">
|
||||
{%endblock topimports %}
|
||||
|
||||
{% block content %}
|
||||
{% if user %}<div id="page-playlist"></div>{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block bottomimports %}
|
||||
<script src="{% static "js/playlist.js" %}"></script>
|
||||
{% endblock bottomimports %}
|
||||
33
templates/cms/user_playlists.html
Executable file
33
templates/cms/user_playlists.html
Executable file
@@ -0,0 +1,33 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block headtitle %}{% if user.name %}{{user.name}} - {% endif %}Playlists - {{PORTAL_NAME}}{% endblock headtitle %}
|
||||
|
||||
{% block headermeta %}
|
||||
|
||||
<meta property="og:title" content="{% if user.name %}{{user.name}} - {% endif %}Playlists - {{PORTAL_NAME}}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
|
||||
{% endblock headermeta %}
|
||||
|
||||
{% block topimports %}
|
||||
<link href="{% static "css/profile-playlists.css" %}" rel="preload" as="style">
|
||||
<link href="{% static "css/profile-playlists.css" %}" rel="stylesheet">
|
||||
{%endblock topimports %}
|
||||
|
||||
{% block innercontent %}
|
||||
{% if user %}{% else %}
|
||||
No such user
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if user %}<div id="page-profile-playlists"></div>{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block bottomimports %}
|
||||
<script src="{% static "js/profile-playlists.js" %}"></script>
|
||||
{% endblock bottomimports %}
|
||||
@@ -17,6 +17,7 @@ MediaCMS.features = {
|
||||
dislike: {% if CAN_DISLIKE_MEDIA %}true{% else %}false{% endif %},
|
||||
download: true,
|
||||
comment: true,
|
||||
save: true,
|
||||
},
|
||||
shareOptions: [ 'embed', 'fb', 'tw', 'whatsapp', 'telegram', 'reddit', 'tumblr', 'vk', 'pinterest', 'mix', 'linkedin', 'email' ],
|
||||
},
|
||||
@@ -25,4 +26,4 @@ MediaCMS.features = {
|
||||
hideViews: false,
|
||||
hideAuthor: false,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6,6 +6,9 @@ MediaCMS.pages = {
|
||||
},
|
||||
},
|
||||
},
|
||||
search:{
|
||||
advancedFilters: true,
|
||||
},
|
||||
media: {
|
||||
categoriesWithTitle: false,
|
||||
htmlInDescription: false,
|
||||
|
||||
Reference in New Issue
Block a user