Fixing messages styling

This commit is contained in:
Leigh Morresi
2021-01-29 17:50:47 +01:00
parent b6e9bb12fb
commit ba17b23f7a
5 changed files with 32 additions and 18 deletions

View File

@@ -17,10 +17,10 @@
<ul class="pure-menu-list">
<li class="pure-menu-item">
<a href="/import" class="pure-menu-link">IMPORT</a>
<a href="/import" class="pure-menu-link">IMPORT</a>
</li>
<li class="pure-menu-item">
<a href="/settings" class="pure-menu-link">SETTINGS</a>
<a href="/settings" class="pure-menu-link">SETTINGS</a>
</li>
<li class="pure-menu-item"><a class="github-link" href="https://github.com/dgtlmoon/changedetection.io">
<svg class="octicon octicon-mark-github v-align-middle" height="32" viewBox="0 0 16 16" version="1.1"
@@ -42,11 +42,13 @@
{% block header %}{% endblock %}
</header>
{% if messages %}
<div class="messages">
{% for message in messages %}
<div class="flash-message {{ message['class'] }}">{{ message['message'] }}</div>
{% for message in messages %}
<div class="flash-message {{ message['class'] }}">{{ message['message'] }}</div>
{% endfor %}
</div>
{% endif %}
{% block content %}

View File

@@ -9,8 +9,13 @@
<fieldset class="pure-group">
<legend>One URL per line, URLs that do not pass validation will stay in the textarea.</legend>
<textarea name="urls" class="pure-input-1-2" placeholder="https://" cols="150" style="width: 100%;font-family:monospace;" rows="25">{{ remaining }}</textarea>
</fieldset>
<textarea name="urls" class="pure-input-1-2" placeholder="https://"
style="width: 100%;
font-family:monospace;
white-space: pre;
overflow-wrap: normal;
overflow-x: scroll;" rows="25">{{ remaining }}</textarea>
</fieldset>
<button type="submit" class="pure-button pure-input-1-2 pure-button-primary">Import</button>
</form>

View File

@@ -15,14 +15,14 @@
<!-- user/pass r = requests.get('https://api.github.com/user', auth=('user', 'pass')) -->
</form>
<div>
{% for tag in tags %}
{% if tag == "" %}
<a href="/" class="pure-button button-tag ">All</a>
{% else %}
<a href="/?tag={{ tag}}" class="pure-button button-tag ">{{ tag }}</a>
{% endif %}
{% endfor %}
</div>
{% for tag in tags %}
{% if tag == "" %}
<a href="/" class="pure-button button-tag ">All</a>
{% else %}
<a href="/?tag={{ tag}}" class="pure-button button-tag ">{{ tag }}</a>
{% endif %}
{% endfor %}
</div>
<div id="watch-table-wrapper">
<table class="pure-table pure-table-striped watch-table">
@@ -48,9 +48,7 @@
<div class="fetch-error">{{ watch.last_error }}</div>
{% endif %}
</td>
<td>{{watch|format_last_checked_time}}
</td>
<td>{{watch|format_last_checked_time}}</td>
<td>{{watch.last_changed|format_timestamp_timeago}}</td>
<td><a href="/api/checknow?uuid={{ watch.uuid}}" class="pure-button button-small pure-button-primary">Recheck</a>
<a href="/edit?uuid={{ watch.uuid}}" class="pure-button button-small pure-button-primary">Edit</a>