Commit 1db13e59c71fd5e95d40db4e26a38ac0b635e89e
1 parent
cc3fcb1b
Exists in
master
and in
5 other branches
Template to list the links in the topics [Issue:#126]
Showing
1 changed file
with
27 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,27 @@ | @@ -0,0 +1,27 @@ | ||
1 | +{% load static i18n list_topic_foruns permission_tags %} | ||
2 | +{% for link in links%} | ||
3 | + <li><i class="fa fa-link" aria-hidden="true"></i> <a href="#" data-toggle="modal" data-target="#linksModal{{slug}}{{ forloop.counter }}">{{link}}</a></li> | ||
4 | + <!--MODAL VIEW LINK--> | ||
5 | + <div class="modal fade" id="linksModal{{slug}}{{ forloop.counter}}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> | ||
6 | + <div class="modal-dialog" role="document"> | ||
7 | + <div class="modal-content"> | ||
8 | + <div class="modal-header"> | ||
9 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
10 | + <h4 class="modal-title" id="myModalLabel">Link</h4> | ||
11 | + </div> | ||
12 | + <div class="modal-body"> | ||
13 | + <!-- Card --> | ||
14 | + <article class="card animated fadeInLeft"> | ||
15 | + <div class="card-block"> | ||
16 | + <b class="card-title">{{link.name}}</b><p></p> | ||
17 | + <p class="card-text"> </p><p>{{link.link_description}}</p> | ||
18 | + <a href="{{ link.link_url }}" class="btn btn-primary">Read more</a> | ||
19 | + </div> | ||
20 | + </article> | ||
21 | + <!-- .end Card --> | ||
22 | + </div> | ||
23 | + </div> | ||
24 | + </div> | ||
25 | + </div> | ||
26 | + <!-- EndModal --> | ||
27 | +{% endfor %} |