Browse Source

Merge pull request #60 from BetterWorks/markupFixes

fix some markup and be more explicit about date time format
pull/64/head
Pēteris Caune 9 years ago
parent
commit
d6c6332829
13 changed files with 12 additions and 38 deletions
  1. +1
    -1
      static/js/log.js
  2. +2
    -3
      templates/front/my_checks.html
  3. +1
    -1
      templates/front/my_checks_desktop.html
  4. +1
    -5
      templates/integrations/add_email.html
  5. +1
    -5
      templates/integrations/add_hipchat.html
  6. +1
    -5
      templates/integrations/add_pd.html
  7. +1
    -5
      templates/integrations/add_slack.html
  8. +0
    -4
      templates/integrations/add_victorops.html
  9. +1
    -5
      templates/integrations/add_webhook.html
  10. +1
    -1
      templates/integrations/pd_description.html
  11. +1
    -1
      templates/integrations/pushover_title.html
  12. +0
    -1
      templates/integrations/slack_message.json
  13. +1
    -1
      templates/integrations/victorops_description.html

+ 1
- 1
static/js/log.js 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");
});
});

+ 2
- 3
templates/front/my_checks.html 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">


+ 1
- 1
templates/front/my_checks_desktop.html 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 %}


+ 1
- 5
templates/integrations/add_email.html 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 %}

+ 1
- 5
templates/integrations/add_hipchat.html 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 %}

+ 1
- 5
templates/integrations/add_pd.html 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 %}

+ 1
- 5
templates/integrations/add_slack.html 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 %}

+ 0
- 4
templates/integrations/add_victorops.html View File

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


+ 1
- 5
templates/integrations/add_webhook.html 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 %}

+ 1
- 1
templates/integrations/pd_description.html 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 %}

+ 1
- 1
templates/integrations/pushover_title.html 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 %}

+ 0
- 1
templates/integrations/slack_message.json View File

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

+ 1
- 1
templates/integrations/victorops_description.html 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 %}

Loading…
Cancel
Save