First pass at updating event embed

Seems I forgot about those in BS4 port, oops
This commit is contained in:
2021-02-06 01:02:25 +00:00
parent 656f9fdd25
commit 0598612c15
2 changed files with 67 additions and 76 deletions

View File

@@ -1,10 +1,12 @@
{% extends 'base_embed.html' %} {% extends 'base_embed.html' %}
{% load static %} {% load static %}
{% block js %}
<script src="{% static 'js/all.js' %}"></script>
{% endblock %}
{% block content %} {% block content %}
<div class="row"> <span class="float-right">
<div class="col-sm-12">
<span class="pull-right">
{% if object.mic %} {% if object.mic %}
<div class="text-center"> <div class="text-center">
<img src="{{ object.mic.profile_picture }}" class="event-mic-photo rounded"/> <img src="{{ object.mic.profile_picture }}" class="event-mic-photo rounded"/>
@@ -15,9 +17,7 @@
</span> </span>
<h3> <h3>
<a href="{% url 'event_detail' object.pk %}"> <a href="{% url 'event_detail' object.pk %}">{{ object.display_id }} | {{ object.name }}</a>
{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %}
| {{ object.name }} </a>
{% if object.venue %} {% if object.venue %}
<small>at {{ object.venue }}</small> <small>at {{ object.venue }}</small>
{% endif %} {% endif %}
@@ -37,13 +37,9 @@
{% endif %} {% endif %}
</small> </small>
</h3> </h3>
{% include 'partials/event_status.html' %}
<div class="row"> <div class="row ml-2">
<div class="col-xs-6"> <div class="col-xs-6 pr-2">
<p>
<strong>Status:</strong>
{{ object.get_status_display }}
</p>
<p> <p>
{% if object.is_rig %} {% if object.is_rig %}
<strong>Client:</strong> {{ object.person.name }} <strong>Client:</strong> {{ object.person.name }}
@@ -64,7 +60,7 @@
{% endif %} {% endif %}
</p> </p>
</div> </div>
<div class="col-xs-6"> <div class="col-xs-6 px-2">
{% if object.meet_at %} {% if object.meet_at %}
<p> <p>
<strong>Crew meet:</strong> <strong>Crew meet:</strong>
@@ -89,6 +85,4 @@
{{ object.description|linebreaksbr }} {{ object.description|linebreaksbr }}
</p> </p>
{% endif %} {% endif %}
</div>
</div>
{% endblock %} {% endblock %}

View File

@@ -13,6 +13,7 @@
<link href="{% static 'fonts/OpenSans-Regular.tff' %}"> <link href="{% static 'fonts/OpenSans-Regular.tff' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}">
</head> </head>
<body> <body>
@@ -28,11 +29,7 @@
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<div class="col-sm-12"> <a href="/"><span class="source"> R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></span></a>
<a href="/">
<span class="source"> R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></span>
</a>
</div>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</div> </div>