From 63e95546cfe802c8e8cfa72c1f7bf40a2c9829bb Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 2 Oct 2019 17:16:23 +0200 Subject: [PATCH] Updating rating.html to add: --- .project | 17 ++++++++ .settings/.jsdtscope | 7 ++++ ...rg.eclipse.wst.jsdt.ui.superType.container | 1 + .../org.eclipse.wst.jsdt.ui.superType.name | 1 + .../templates/rating/snippets/rating.html | 42 ++++++++++++++++++- 5 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 .project create mode 100644 .settings/.jsdtscope create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name diff --git a/.project b/.project new file mode 100644 index 0000000..679dc22 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + ckanext-rating + + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope new file mode 100644 index 0000000..cca691f --- /dev/null +++ b/.settings/.jsdtscope @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..49c8cd4 --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.JRE_CONTAINER \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..11006e2 --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Global \ No newline at end of file diff --git a/ckanext/rating/templates/rating/snippets/rating.html b/ckanext/rating/templates/rating/snippets/rating.html index e9cf621..adbdc8a 100644 --- a/ckanext/rating/templates/rating/snippets/rating.html +++ b/ckanext/rating/templates/rating/snippets/rating.html @@ -6,6 +6,43 @@ package - The package for which the rating is displayed {% snippet "rating/snippets/rating.html", package=pkg %} #} + + + {% resource "rating_css/rating.css" %} {% if h.show_rating_in_type(package.type) %}
@@ -27,9 +64,10 @@ package - The package for which the rating is displayed
{% else %}
- {{ _('Login') }} {{ _('to leave a rating') }} + +
To access the rating you must log in
{% endif %} {% endblock %} -{% endif %} +{% endif %} \ No newline at end of file