Browse Source

CSS tweaks for long check names, and for mobile view of cron form.

pull/109/head
Pēteris Caune 8 years ago
parent
commit
e3ed4d25bb
6 changed files with 27 additions and 8 deletions
  1. +4
    -2
      static/css/my_checks.css
  2. +11
    -0
      static/css/my_checks_desktop.css
  3. +1
    -1
      templates/front/cron_preview.html
  4. +3
    -3
      templates/front/my_checks.html
  5. +1
    -1
      templates/front/my_checks_desktop.html
  6. +7
    -1
      templates/front/my_checks_mobile.html

+ 4
- 2
static/css/my_checks.css View File

@ -1,5 +1,7 @@
#update-timeout-modal .modal-dialog {
width: 800px;
@media (min-width: 992px) {
#update-timeout-modal .modal-dialog {
width: 800px;
}
} }
#update-timeout-form .modal-body { #update-timeout-form .modal-body {


+ 11
- 0
static/css/my_checks_desktop.css View File

@ -6,6 +6,9 @@
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.my-checks-name {
max-width: 250px;
}
.my-checks-name.unnamed { .my-checks-name.unnamed {
color: #999; color: #999;
@ -49,6 +52,14 @@ table.table tr > th.th-name {
display: block; display: block;
} }
.timeout-grace .cron-expression {
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
max-width: 120px;
}
#checks-table tr:hover .timeout-grace { #checks-table tr:hover .timeout-grace {
border: 1px dotted #AAA; border: 1px dotted #AAA;
} }


+ 1
- 1
templates/front/cron_preview.html View File

@ -11,7 +11,7 @@
<tr> <tr>
<td>{{ naive|date:"M j, H:i" }}</td> <td>{{ naive|date:"M j, H:i" }}</td>
<td>{{ aware|naturaltime }}</td> <td>{{ aware|naturaltime }}</td>
<td>{{ aware|date:"c" }}</td>
<td class="hidden-xs">{{ aware|date:"c" }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>


+ 3
- 3
templates/front/my_checks.html View File

@ -178,7 +178,7 @@
<input type="hidden" name="kind" value="cron" /> <input type="hidden" name="kind" value="cron" />
<div class="modal-body"> <div class="modal-body">
<div class="row"> <div class="row">
<div class="col-sm-4">
<div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label for="schedule">Cron Expression</label> <label for="schedule">Cron Expression</label>
<input <input
@ -189,7 +189,7 @@
placeholder="* * * * *"> placeholder="* * * * *">
</div> </div>
</div> </div>
<div class="col-sm-4">
<div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label for="tz">Server's Timezone</label> <label for="tz">Server's Timezone</label>
<br /> <br />
@ -200,7 +200,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="col-sm-4">
<div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label for="cron-grace">Grace Time</label> <label for="cron-grace">Grace Time</label>
<div class="input-group"> <div class="input-group">


+ 1
- 1
templates/front/my_checks_desktop.html View File

@ -61,7 +61,7 @@
{% if check.kind == "simple" %} {% if check.kind == "simple" %}
{{ check.timeout|hc_duration }} {{ check.timeout|hc_duration }}
{% elif check.kind == "cron" %} {% elif check.kind == "cron" %}
{{ check.schedule }}
<span class="cron-expression">{{ check.schedule }}</span>
{% endif %} {% endif %}
<br /> <br />
<span class="checks-subline"> <span class="checks-subline">


+ 7
- 1
templates/front/my_checks_mobile.html View File

@ -92,7 +92,13 @@
data-grace="{{ check.grace.total_seconds }}" data-grace="{{ check.grace.total_seconds }}"
data-schedule="{{ check.schedule }}" data-schedule="{{ check.schedule }}"
data-tz="{{ check.tz }}" data-tz="{{ check.tz }}"
class="btn btn-default timeout-grace">Change Period</a>
class="btn btn-default timeout-grace">
{% if check.kind == "simple" %}
Change Period
{% elif check.kind == "cron" %}
Change Schedule
{% endif %}
</a>
<a href="{% url 'hc-log' check.code %}" class="btn btn-default">Log</a> <a href="{% url 'hc-log' check.code %}" class="btn btn-default">Log</a>
</div> </div>


Loading…
Cancel
Save