student.html 1.28 KB
Newer Older
Daniel W Bond's avatar
Daniel W Bond committed
1
2
3
{% extends 'layouts/base.html' %}

{% block title %}
4
GMU Advisor | {{ student.user.first_name }} {{ student.user.last_name }}
Daniel W Bond's avatar
Daniel W Bond committed
5
6
7
8
{% endblock %}

{% block content %}

9
10
{% load gravatar %}

Daniel W Bond's avatar
Daniel W Bond committed
11
<div class="row">
12
  <div class="col-md-6">
13
    <h3>{{ student.user.first_name }} {{ student.user.last_name }}</h3>
Daniel W Bond's avatar
Daniel W Bond committed
14
  </div>
15
16
17
  <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! -->
Daniel W Bond's avatar
Daniel W Bond committed
18
19
</div>

20

Daniel W Bond's avatar
Daniel W Bond committed
21
22
<h4><strong>My Trajectories</strong></h4>

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% 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 %}
Daniel W Bond's avatar
Daniel W Bond committed
43

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

Daniel W Bond's avatar
Daniel W Bond committed
47
{% endblock %}