Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
graceful degradation without JS
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 6f60561 commit b5af039
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
11 changes: 10 additions & 1 deletion nikola/data/themes/base/templates/gallery.tmpl
Expand Up @@ -22,7 +22,16 @@
% endfor
</ul>
%endif

<noscript>
%if photo_array:
<ul class="thumbnails">
%for image in photo_array:
<li><a href="${image['url']}" class="thumbnail image-reference" title="${image['title']}">
<img src="${image['url_thumb']}" alt="${image['title']}" /></a>
%endfor
</ul>
%endif
</noscript>
<div id="gallery_container"></div>

%if site_has_comments and enable_comments:
Expand Down
11 changes: 10 additions & 1 deletion nikola/data/themes/bootstrap/templates/gallery.tmpl
Expand Up @@ -22,7 +22,16 @@
% endfor
</ul>
%endif

<noscript>
%if photo_array:
<ul class="thumbnails">
%for image in photo_array:
<li><a href="${image['url']}" class="thumbnail image-reference" title="${image['title']}">
<img src="${image['url_thumb']}" alt="${image['title']}" /></a>
%endfor
</ul>
%endif
</noscript>
<div id="gallery_container"></div>

%if site_has_comments and enable_comments:
Expand Down
10 changes: 10 additions & 0 deletions nikola/data/themes/bootstrap3/templates/gallery.tmpl
Expand Up @@ -22,6 +22,16 @@
</ul>
%endif

<noscript>
%if photo_array:
<ul class="thumbnails">
%for image in photo_array:
<li><a href="${image['url']}" class="thumbnail image-reference" title="${image['title']}">
<img src="${image['url_thumb']}" alt="${image['title']}" /></a>
%endfor
</ul>
%endif
</noscript>
<div id="gallery_container"></div>

%if site_has_comments and enable_comments:
Expand Down

0 comments on commit b5af039

Please sign in to comment.