index.html 1.14 KB
Newer Older
David Haynes's avatar
David Haynes committed
1
<!-- include the base html template -->
2
{% extends 'layouts/base.html' %}
David Haynes's avatar
David Haynes committed
3 4

<!-- define the page title block -->
5
{% block title %}
Zach Knox's avatar
Zach Knox committed
6
SRCT Go &bull; My Links
7 8
{% endblock %}

David Haynes's avatar
David Haynes committed
9
<!-- define the content block for the page -->
10 11
{% block content %}

David Haynes's avatar
David Haynes committed
12
<!-- define the page header div -->
13 14 15
<div class="page-header" id="banner">
  <div class="row">
    <div class="col-md-12">
16
      <h1>
David Haynes's avatar
David Haynes committed
17 18 19 20
        <span class="fa-stack fa-lg">
          <i class="fa fa-circle fa-stack-2x"></i>
          <i class="fa fa-link fa-stack-1x fa-inverse"></i>
        </span>
21 22
        My Links
      </h1>
23 24
    </div>
  </div>
Zach Knox's avatar
Zach Knox committed
25
  <div class="newlink" style="text-align: right;">
26
      <a href="{% url 'new_link' %}"><i class="fa fa-plus" aria-hidden="true"></i> Add new link</a>
Zach Knox's avatar
Zach Knox committed
27
  </div>
28 29
</div>

Zach Knox's avatar
Zach Knox committed
30 31 32 33 34 35 36 37 38 39 40 41 42
<!-- show all of the links -->
<div class="row">
    <!-- for every url in the urls list-->
    {% for url in urls %}
        <legend>
        <!-- include the link box for this url -->
        {% include 'link_box.html' %}
        </legend>
    <!-- unless the list is empty -->
    {% empty %}
      <h3>&nbsp;&nbsp;&nbsp;None found <i class="fa fa-frown-o"></i></h3>
    {% endfor %}
</div>
David Haynes's avatar
David Haynes committed
43

44
{% endblock %}