Merge pull request #60 from BetterWorks/markupFixes

fix some markup and be more explicit about date time format
This commit is contained in:
Pēteris Caune 2016-05-24 07:28:42 +03:00
commit d6c6332829
13 changed files with 12 additions and 38 deletions

View File

@ -19,4 +19,4 @@ $(function () {
// The table is initially hidden to avoid flickering as we convert dates. // The table is initially hidden to avoid flickering as we convert dates.
// Once it's ready, set it to visible: // Once it's ready, set it to visible:
$("#log").css("visibility", "visible"); $("#log").css("visibility", "visible");
}); });

View File

@ -43,13 +43,12 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12"></div> <div class="col-sm-12">
<form method="post" action="{% url 'hc-add-check' %}" class="text-center"> <form method="post" action="{% url 'hc-add-check' %}" class="text-center">
{% csrf_token %} {% csrf_token %}
<input type="submit" class="btn btn-primary btn-lg" value="Add Check"> <input type="submit" class="btn btn-primary btn-lg" value="Add Check">
</form> </form>
</div> </div>
</div> </div>
<div id="update-name-modal" class="modal"> <div id="update-name-modal" class="modal">
@ -177,7 +176,7 @@
{% csrf_token %} {% csrf_token %}
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</span></button> <button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="remove-check-title">Remove Check <span class="remove-check-name"></span></h4> <h4 class="remove-check-title">Remove Check <span class="remove-check-name"></span></h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">

View File

@ -77,7 +77,7 @@
{% if check.last_ping %} {% if check.last_ping %}
<span <span
data-toggle="tooltip" data-toggle="tooltip"
title="{{ check.last_ping }} GMT"> title="{{ check.last_ping|date:'N j, Y, P e' }}">
{{ check.last_ping|naturaltime }} {{ check.last_ping|naturaltime }}
</span> </span>
{% else %} {% else %}

View File

@ -40,10 +40,6 @@
</div> </div>
</form> </form>
</div> </div>
</div>
</div> </div>
@ -54,4 +50,4 @@
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script> <script src="{% static 'js/bootstrap.min.js' %}"></script>
{% endcompress %} {% endcompress %}
{% endblock %} {% endblock %}

View File

@ -77,10 +77,6 @@
</div> </div>
</form> </form>
</div> </div>
</div>
</div> </div>
@ -91,4 +87,4 @@
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script> <script src="{% static 'js/bootstrap.min.js' %}"></script>
{% endcompress %} {% endcompress %}
{% endblock %} {% endblock %}

View File

@ -77,10 +77,6 @@
</div> </div>
</form> </form>
</div> </div>
</div>
</div> </div>
@ -91,4 +87,4 @@
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script> <script src="{% static 'js/bootstrap.min.js' %}"></script>
{% endcompress %} {% endcompress %}
{% endblock %} {% endblock %}

View File

@ -67,10 +67,6 @@
</div> </div>
</form> </form>
</div> </div>
</div>
</div> </div>
@ -81,4 +77,4 @@
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script> <script src="{% static 'js/bootstrap.min.js' %}"></script>
{% endcompress %} {% endcompress %}
{% endblock %} {% endblock %}

View File

@ -90,10 +90,6 @@
</div> </div>
</form> </form>
</div> </div>
</div>
</div> </div>

View File

@ -88,10 +88,6 @@
</div> </div>
</form> </form>
</div> </div>
</div>
</div> </div>
@ -102,4 +98,4 @@
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script> <script src="{% static 'js/bootstrap.min.js' %}"></script>
{% endcompress %} {% endcompress %}
{% endblock %} {% endblock %}

View File

@ -2,4 +2,4 @@
{{ check.name_then_code }} is DOWN {{ check.name_then_code }} is DOWN
{% else %} {% else %}
{{ check.name_then_code }} received a ping and is now UP {{ check.name_then_code }} received a ping and is now UP
{% endif %} {% endif %}

View File

@ -2,4 +2,4 @@
{{ check.name_then_code }} is DOWN {{ check.name_then_code }} is DOWN
{% else %} {% else %}
{{ check.name_then_code }} is now UP {{ check.name_then_code }} is now UP
{% endif %} {% endif %}

View File

@ -42,4 +42,3 @@
] ]
}] }]
} }

View File

@ -4,4 +4,4 @@
Last ping was {{ check.last_ping|naturaltime }}. Last ping was {{ check.last_ping|naturaltime }}.
{% else %} {% else %}
{{ check.name_then_code }} received a ping and is now UP {{ check.name_then_code }} received a ping and is now UP
{% endif %} {% endif %}