From 454c5d62fc9d65d24a8982c589258fcf15ccea77 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Nov 28 2017 16:31:23 +0000 Subject: [frontend] move the blog window to the panel on right --- diff --git a/frontend/coprs_frontend/coprs/static/js/blog.js b/frontend/coprs_frontend/coprs/static/js/blog.js index cf5db5b..5113c64 100644 --- a/frontend/coprs_frontend/coprs/static/js/blog.js +++ b/frontend/coprs_frontend/coprs/static/js/blog.js @@ -19,8 +19,9 @@ $(document).ready(function(){ $("#blog-title").text(el.find("title").text()) $("#blog-author").text(el.find("author").text()) - $("#blog-link").attr("href", el.find("link").text()) $("#blog-date").text(f_published) + $("#blog-link").attr("href", el.find("link").text()) + $("#blog-link").removeClass("hidden") return false }); }); diff --git a/frontend/coprs_frontend/coprs/templates/_helpers.html b/frontend/coprs_frontend/coprs/templates/_helpers.html index 49007fb..ae42750 100644 --- a/frontend/coprs_frontend/coprs/templates/_helpers.html +++ b/frontend/coprs_frontend/coprs/templates/_helpers.html @@ -313,6 +313,36 @@ {% endmacro %} +{% macro recent_blog_panel() %} +
+
+

News - Read All

+
+ +
+{% endmacro %} + + {% macro render_crumb(href, title, active=False) %}
  • diff --git a/frontend/coprs_frontend/coprs/templates/coprs/show.html b/frontend/coprs_frontend/coprs/templates/coprs/show.html index 7af98c6..efface3 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/show.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/show.html @@ -2,7 +2,7 @@ {% block title %}Project List{% endblock %} {% block header %}Project List{% endblock %} {% from "_helpers.html" import render_pagination, copr_details_href, copr_name, user_projects_panel %} -{% from "_helpers.html" import recent_builds_panel, task_queue_panel %} +{% from "_helpers.html" import recent_builds_panel, task_queue_panel, recent_blog_panel %} {%block main_menu_projects %}active{% endblock %} {% block body %}
    @@ -46,6 +46,7 @@ {{ user_projects_panel(g.user) }} {% endif %} + {{ recent_blog_panel() }} {{ task_queue_panel(tasks_info) }} {{ recent_builds_panel(users_builds) }} diff --git a/frontend/coprs_frontend/coprs/templates/coprs/show/all.html b/frontend/coprs_frontend/coprs/templates/coprs/show/all.html index 3e1f4cc..be8624a 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/show/all.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/show/all.html @@ -12,30 +12,6 @@
    {% endif %} -
    - Read all - - -

    News

    -
    -
    - - -
    -
    - {% if g.user %} New Project