student.html 1.28 KB
Newer Older
Daniel W Bond's avatar
Daniel W Bond committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% extends 'layouts/base.html' %}

{% block title %}
GMU Advisor | {{ student.user.first_name }} {{ student.user.last_name }}
{% endblock %}

{% block content %}

{% load gravatar %}

<div class="row">
  <div class="col-md-6">
    <h3>{{ student.user.first_name }} {{ student.user.last_name }}</h3>
  </div>
  <div class="col-md-6">
    <img class="img-circle img-responsive center-block" src="{% gravatar url 'daniel@dbond.cc' 200 %}">
    <!-- don't have a gravatar? make one here! -->
</div>


<h4><strong>My Trajectories</strong></h4>

{% for trajectory in topTrajectories %}
  <div class="row">
    <div class="col-md-5">
      <h4>{{ trajectory.name }}</h4>
    </div>
    <div class="col-md-1">
      <button type="button" class="btn btn-primary">Edit</button>
    </div>
    <div class="col-md-1">
      {% if trajectory.isPublic %}
        <button type="button" class="btn btn-success">Public</button>
      {% else %}
        <button type="button" class="btn btn-default">Private</button>
      {% endif %}
    </div>
    <div class="col-md-1">
      <button type="button" class="btn btn-danger">Delete</button>
    </div>
  </div>
{% endfor %}

<!-- potential issue with naming new trajectories: there will have to be
     a way to rename whenever a new branch off is created ->

{% endblock %}