]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/templates/wiki/files/index.html
wiki: Add detail page for files
[ipfire.org.git] / src / templates / wiki / files / index.html
index 407ed4fc13ede6fc210eac07eb0b887d234e3bea..7f69724751e8c5f09091e337a24ae530c6308eeb 100644 (file)
                                                {% if f.is_image() %}
                                                        <div class="col-sm-6 col-md-4">
                                                                <figure class="figure">
-                                                                       <img class="figure-img img-fluid img-thumbnail" src="{{ f.url }}" alt="{{ f.filename }}">
-                                                                       <figcaption class="figure-caption">{{ f.filename }}</figcaption>
+                                                                       <a href="{{ f.url }}?action=detail">
+                                                                               <img class="figure-img img-fluid img-thumbnail" src="{{ f.url }}?s=256" alt="{{ f.filename }}">
+                                                                               <figcaption class="figure-caption">{{ f.filename }}</figcaption>
+                                                                       </a>
                                                                </figure>     
                                                        </div>
                                                {% end %}
@@ -39,7 +41,7 @@
                                                                        <span class="fas fa-file fa-fw"></span>
                                                                {% end %}
 
-                                                               <a href="{{ f.url }}">{{ f.filename }}</a>
+                                                               <a href="{{ f.url }}?action=detail">{{ f.filename }}</a>
                                                        </li>
                                                {% end %}
                                        {% end %}