Selaa lähdekoodia

Fix review list template (#4014)

* fix: Review template layout fix

* fix: Removing unnecessary permissions from static and documentation files

* Revert "fix: Removing unnecessary permissions from static and documentation files"

This reverts commit 9e342199b6.
master
dimka 2 vuotta sitten
vanhempi
commit
c49a21979e
No account linked to committer's email address
1 muutettua tiedostoa jossa 42 lisäystä ja 41 poistoa
  1. 42
    41
      src/oscar/templates/oscar/dashboard/reviews/review_list.html

+ 42
- 41
src/oscar/templates/oscar/dashboard/reviews/review_list.html Näytä tiedosto

@@ -70,10 +70,11 @@
70 70
                         </td>
71 71
                         <td>
72 72
                             {% if review.product %}
73
-                                <a href='{{ review.product.get_absolute_url }}'>{{ review.product.title }}</a> </td>
74
-                        {% else %}
75
-                            {% trans "[Product deleted]" %}
76
-                        {% endif %}
73
+                                <a href='{{ review.product.get_absolute_url }}'>{{ review.product.title }}</a>
74
+                            {% else %}
75
+                                {% trans "[Product deleted]" %}
76
+                            {% endif %}
77
+                        </td>
77 78
                         <td>
78 79
                             {% if not review.is_anonymous %}
79 80
                                 <a href="{% url 'dashboard:user-detail' pk=review.user.id %}">{{ review.reviewer_name }}</a>
@@ -88,43 +89,43 @@
88 89
                         <td>
89 90
                             {% if review.status == 1 %}
90 91
                                 <span class="badge badge-success">
91
-                                    {% elif review.status == 2 %}
92
-                                    <span class="badge badge-danger">
93
-                                    {% else %}
94
-                                        <span class="badge badge-info">
92
+                            {% elif review.status == 2 %}
93
+                                <span class="badge badge-danger">
94
+                            {% else %}
95
+                                <span class="badge badge-info">
96
+                            {% endif %}
97
+                                {{ review.get_status_display }}
98
+                            </span>
99
+                        </td>
100
+                        <td>{{ review.date_created }}</td>
101
+                        <td>
102
+                            <div class="btn-toolbar">
103
+                                <div class="dropdown">
104
+                                    <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
105
+                                        {% trans "Actions" %}
106
+                                    </button>
107
+                                    <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
108
+                                        {% if review.title and review.product %}
109
+                                            <a class="dropdown-item" href="{% url 'catalogue:reviews-detail' product_slug=review.product.slug product_pk=review.product.id pk=review.id %}">
110
+                                                {% trans "View on site" %}
111
+                                            </a>
95 112
                                         {% endif %}
96
-                                        {{ review.get_status_display }}
97
-                                    </span>
98
-                                </td>
99
-                                <td>{{ review.date_created }}</td>
100
-                                <td>
101
-                                    <div class="btn-toolbar">
102
-                                        <div class="dropdown">
103
-                                            <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
104
-                                                {% trans "Actions" %}
105
-                                            </button>
106
-                                            <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
107
-                                                {% if review.title and review.product %}
108
-                                                    <a class="dropdown-item" href="{% url 'catalogue:reviews-detail' product_slug=review.product.slug product_pk=review.product.id pk=review.id %}">
109
-                                                        {% trans "View on site" %}
110
-                                                    </a>
111
-                                                {% endif %}
112
-                                                <a class="dropdown-item" href="{% url 'dashboard:reviews-update' pk=review.id %}">{% trans "Edit" %}</a>
113
-                                                <a class="dropdown-item" href="{% url 'dashboard:reviews-delete' pk=review.id %}">{% trans "Delete" %}</a>
114
-                                            </div>
115
-                                        </div>
113
+                                        <a class="dropdown-item" href="{% url 'dashboard:reviews-update' pk=review.id %}">{% trans "Edit" %}</a>
114
+                                        <a class="dropdown-item" href="{% url 'dashboard:reviews-delete' pk=review.id %}">{% trans "Delete" %}</a>
116 115
                                     </div>
117
-                                </td>
118
-                            </tr>
119
-                        {% endfor %}
120
-                    </table>
121
-                    {% include "oscar/dashboard/partials/pagination.html" %}
122
-                </form>
123
-            {% else %}
124
-                <table class="table table-striped table-bordered table-hover">
125
-                    <caption>{{ description }}</caption>
126
-                    <tr><td>{% trans "No reviews found." %}</td></tr>
127
-                </table>
128
-            {% endif %}
116
+                                </div>
117
+                            </div>
118
+                        </td>
119
+                    </tr>
120
+                {% endfor %}
121
+            </table>
122
+            {% include "oscar/dashboard/partials/pagination.html" %}
123
+        </form>
124
+    {% else %}
125
+        <table class="table table-striped table-bordered table-hover">
126
+            <caption>{{ description }}</caption>
127
+            <tr><td>{% trans "No reviews found." %}</td></tr>
128
+        </table>
129
+    {% endif %}
129 130
 
130
-        {% endblock dashboard_content %}
131
+{% endblock dashboard_content %}

Loading…
Peruuta
Tallenna