Skip to content

Commit

Permalink
Format templates
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 26, 2024
1 parent 627e629 commit 860434b
Show file tree
Hide file tree
Showing 22 changed files with 498 additions and 516 deletions.
68 changes: 34 additions & 34 deletions templates/404.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<title>U-Report - Not Found.</title>
<style>
body {
background-color: #FFFFFF;
}
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<title>U-Report - Not Found.</title>
<style>
body {
background-color: #FFFFFF;
}

.logo {
margin: 0 auto;
margin-top: 190px;
width: 100%;
text-align: center;
.logo {
margin: 0 auto;
margin-top: 190px;
width: 100%;
text-align: center;

}
}

.message {
margin-top: 18px;
color: #333;
font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif;
font-size: 14px;
text-align: center;
}
</style>
</head>
<body>
<div class="logo">
<img src="/sitestatic/img/logo_placeholder.png" alt="" />
</div>
<div class="message">
Sorry, that page wasn't found.
We've been notified of the error.
<br>
</div>
</body>
.message {
margin-top: 18px;
color: #333;
font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif;
font-size: 14px;
text-align: center;
}
</style>
</head>
<body>
<div class="logo">
<img src="/sitestatic/img/logo_placeholder.png" alt="" />
</div>
<div class="message">
Sorry, that page wasn't found.
We've been notified of the error.
<br>
</div>
</body>
</html>
116 changes: 58 additions & 58 deletions templates/500.html
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<title>U-Report Problem - Uh oh!</title>
<style>
body {
background-color: #FFFFFF;
font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif;
}
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<title>U-Report Problem - Uh oh!</title>
<style>
body {
background-color: #FFFFFF;
font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif;
}

.logo {
width: 100%;
text-align: center;
margin: 140px auto 50px;
}
.logo {
width: 100%;
text-align: center;
margin: 140px auto 50px;
}

h3 {
margin-top: 22px;
color: #333;
font-size: 18px;
text-align: center;
}
h3 {
margin-top: 22px;
color: #333;
font-size: 18px;
text-align: center;
}

h4 {}
h4 {}

.message {
margin: 0 auto;
color: #333;
font-size: 14px;
width: 500px;
}
.message {
margin: 0 auto;
color: #333;
font-size: 14px;
width: 500px;
}

.reference {
padding: 20px;
background: #f3f3f3;
font-size: 14px;
text-align: center;
width: 460px;
margin: 30px auto 0;
}
</style>
</head>
<body>
<div class="logo">
<img src="/sitestatic/img/logo_placeholder.png" alt="" />
</div>
<div style="text-align: center;">
<h3>Sometimes bad things happen to good people.</h3>
</div>
<div class="message">
While we do our best to write bug-free code, every now and again things do go wrong. Good news though!
We've already been notified of the problem.
<br />
<br />
</div>
{% if request.sentry.id %}
<div class="reference">
If you'd like to contact us about this error, please be sure to include your reference number
<b>{{ request.sentry.id }}</b>
</div>
{% endif %}
</body>
.reference {
padding: 20px;
background: #f3f3f3;
font-size: 14px;
text-align: center;
width: 460px;
margin: 30px auto 0;
}
</style>
</head>
<body>
<div class="logo">
<img src="/sitestatic/img/logo_placeholder.png" alt="" />
</div>
<div style="text-align: center;">
<h3>Sometimes bad things happen to good people.</h3>
</div>
<div class="message">
While we do our best to write bug-free code, every now and again things do go wrong. Good news though!
We've already been notified of the problem.
<br />
<br />
</div>
{% if request.sentry.id %}
<div class="reference">
If you'd like to contact us about this error, please be sure to include your reference number
<b>{{ request.sentry.id }}</b>
</div>
{% endif %}
</body>
</html>
73 changes: 34 additions & 39 deletions templates/dashblocks/dashblock_form.html
Original file line number Diff line number Diff line change
@@ -1,64 +1,59 @@
{% extends "smartmin/form.html" %}
{% load thumbnail i18n %}

{% block extra-fields %}
{% if object and type.has_gallery %}
<div class="form-group">
<label for="" class="col-sm-2 control-label">{% trans "Gallery" %}</label>
<div class="col-sm-10">
{% for img in object.sorted_images %}
{% thumbnail img.image "100x100" crop="center" as im %}
<a href="{% url 'dashblocks.dashblockimage_update' img.id %}">
<img class="thumb"
src="{{ im.url }}"
width="{{ img.x }}"
height="{{ img.y }}" alt=""/>
</a>
{% endthumbnail %}
<a href="{% url 'dashblocks.dashblockimage_create' %}?dashblock={{ object.id }}"
class="btn btn-default btn-small">{% trans "Add Image" %}</a>
{% endfor %}
</div>
</div>
{% endif %}
{% if object and type.has_gallery %}
<div class="form-group">
<label for="" class="col-sm-2 control-label">{% trans "Gallery" %}</label>
<div class="col-sm-10">
{% for img in object.sorted_images %}
{% thumbnail img.image "100x100" crop="center" as im %}
<a href="{% url 'dashblocks.dashblockimage_update' img.id %}">
<img class="thumb" src="{{ im.url }}" width="{{ img.x }}" height="{{ img.y }}" alt="" />
</a>
{% endthumbnail %}
<a href="{% url 'dashblocks.dashblockimage_create' %}?dashblock={{ object.id }}"
class="btn btn-default btn-small">{% trans "Add Image" %}</a>
{% endfor %}
</div>
</div>
{% endif %}
{% endblock extra-fields %}
{% block extra-style %}
<link rel="stylesheet"
type="text/css"
href="{{ STATIC_URL }}css/prettify.css">
<link rel="stylesheet"
type="text/css"
href="{{ STATIC_URL }}css/summernote-lite.css">
{% if type.has_rich_text %}
<style type="text/css">
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/prettify.css">
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/summernote-lite.css">
{% if type.has_rich_text %}
<style type="text/css">
#id_content {
width: 93%;
height: 250px;
margin-right: 20px;
}

#id_summary {
width: 93%;
height: 150px;
margin-right: 20px;
}

label.checkbox {
padding-left: 20px;
}
</style>
{% endif %}
<style type="text/css">
</style>
{% endif %}
<style type="text/css">
img.thumb {
margin: 5px;
border: 1px solid #ccc;
}
</style>
</style>
{% endblock extra-style %}
{% block extra-script %}
<script src="{{ STATIC_URL }}js/prettify.js"></script>
<script src="{{ STATIC_URL }}js/summernote-lite.min.js"></script>
{% if type.has_rich_text %}
<script type="text/javascript">
$(function(){
<script src="{{ STATIC_URL }}js/prettify.js"></script>
<script src="{{ STATIC_URL }}js/summernote-lite.min.js"></script>
{% if type.has_rich_text %}
<script type="text/javascript">
$(function() {
$("#id_content").summernote({
maximumImageFileSize: 1048576,
callbacks: {
Expand All @@ -78,6 +73,6 @@
}
})
});
</script>
{% endif %}
</script>
{% endif %}
{% endblock extra-script %}
5 changes: 2 additions & 3 deletions templates/dashblocks/dashblock_list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "smartmin/list.html" %}
{% load i18n %}

{% block content-title %}
<h2 class="is-size-2 has-text-weight-bold">
{% if filtered_type %}
Expand Down Expand Up @@ -28,9 +29,7 @@ <h2 class="is-size-2 has-text-weight-bold">
</a>
{% else %}
<a href="./create/"
class="{% if is_rtl_org %}is-pulled-left{% else %}is-pulled-right{% endif %} button is-primary">
{% trans "+ New Page" %}
</a>
class="{% if is_rtl_org %}is-pulled-left{% else %}is-pulled-right{% endif %} button is-primary">{% trans "+ New Page" %}</a>
{% endif %}
{% endif %}
{% endblock table-buttons %}
Loading

0 comments on commit 860434b

Please sign in to comment.