Made embed prettier

This commit is contained in:
David Taylor
2016-10-06 16:48:19 +01:00
parent 25a3ef3f0c
commit 3f752cd7b7
2 changed files with 55 additions and 38 deletions

View File

@@ -3,12 +3,23 @@
{% block content %}
<style>
.source{
background: url({% static "imgs/pyrigs-avatar.png" %}) no-repeat;
background-size: 16px 16px;
padding-left: 20px;
}
</style>
<div class="row">
<div class="col-sm-12">
<span class="source"> R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></span>
</div>
<div class="col-sm-12">
<img src="{% static "imgs/pyrigs-avatar.png" %}" style="position:relative; height:50px; float:left; left:-15px; "> </img>
<h2>
<small>
<h3>
<span class="pull-right">
{% if object.mic %}
@@ -21,7 +32,6 @@
<span class="glyphicon glyphicon-exclamation-sign"></span>
{% endif %}
</span>
</small>
<a {% if perms.RIGS.view_event %}href="{% url 'event_detail' object.pk %}" target="_top"{% endif %}>
{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %}
@@ -32,7 +42,15 @@
</h2>
</h3>
<p>
<strong>{{ object.start_date|date:"D d/m/Y" }}</strong>
{% if object.end_date and object.end_date != object.start_date %}
&ndash; <strong>{{ object.end_date|date:"D d/m/Y" }}</strong>
{% endif %}
<span class="text-muted">({{ object.get_status_display }})</span>
</p>
{% if object.is_rig %}
<h5>
@@ -44,25 +62,24 @@
</h5>
{% endif %}
<p>
<strong>{{ object.start_date|date:"D d/m/Y" }}</strong>
{% if object.end_date and object.end_date != object.start_date %}
&ndash; <strong>{{ object.end_date|date:"D d/m/Y" }}</strong>
{% endif %}
<span class="text-muted">({{ object.get_status_display }})</span>
</p>
{% if object.description %}
<p>
{{ object.description|linebreaksbr }}
</p>
{% endif %}
{% if not object.cancelled %}
<dl class="dl-horizontal">
{% if object.mic %}
<dt>MIC</dt>
<dd>{{object.mic.name}}</dd>
{% endif %}
{% if object.description %}
<dt>Description</dt>
<dd>{{ object.description|linebreaksbr }}</dd>
{% endif %}
{% if object.meet_at %}
<dt>Crew meet</dt>
<dd>{{ object.meet_at|date:"H:i" }} {{ object.meet_at|date:"(Y-m-d)" }}</dd>
{% endif %}
{% if object.access_at %}
<dt>Access at</dt>
<dd>{{ object.access_at|date:"H:i" }} {{ object.access_at|date:"(Y-m-d)" }}</dd>
{% endif %}
{% if object.has_start_time %}
<dt>Event starts</dt>
<dd>
@@ -78,7 +95,6 @@
</dd>
{% endif %}{% endif %}
</dl>
{% endif %}
</div>
</div>
</div>

View File

@@ -29,6 +29,7 @@
}
.embed_container{
border:5px solid #e9e9e9;
padding-top:12px;
height:100%;
width:100%;
}