some style sheet and misc. changes
This commit is contained in:
parent
7874151f32
commit
ed97ce41fd
|
@ -1,5 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Index{% endblock %}
|
||||
{% block head %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ static('homepage.css') }}">
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>Quests 'n Shiet</h1>
|
||||
<form method="get" action="{{ url('search:index') }}">
|
||||
|
|
3
homepage/static/homepage.css
Normal file
3
homepage/static/homepage.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
#content {
|
||||
padding-left: 5%;
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Edit {{ quest.title }}{% endblock %}
|
||||
{% block head %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ static('edit_quest.css') }}">
|
||||
<script>
|
||||
window.onload = function() { document.getElementById('timezone').value = new Date().getTimezoneOffset(); };
|
||||
</script>
|
||||
|
|
|
@ -47,12 +47,13 @@
|
|||
{% block content %}
|
||||
<div id="questPane" style="width:{% if request.session.get("hide_chat") == True %}100%{% else %}70%{% endif %};">
|
||||
<center><h1>{{ quest.title }}</h1></center>
|
||||
Tags: {% for tag in quest.tags.names() %}<a href="{{ url('search:index') + '?tags=' + tag }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}
|
||||
<div id="tags">
|
||||
Tags: {% for tag in quest.tags.names() %}<a href="{{ url('search:index') + '?tags=' + tag }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}
|
||||
</div>
|
||||
{% if request.user == quest.owner %}
|
||||
<form method="post" action="{{ url('quest:new_tag', kwargs={'quest_id': quest_id}) }}">
|
||||
{{ csrf_input }}
|
||||
<input type="text" name="tag">
|
||||
<input type="hidden" name="quest_id" value="{{ quest.id }}">
|
||||
<input type="submit">
|
||||
</form>
|
||||
{% endif %}
|
||||
|
|
18
quest/migrations/0005_auto_20181003_1217.py
Normal file
18
quest/migrations/0005_auto_20181003_1217.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 2.1.1 on 2018-10-03 16:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('quest', '0004_quest_tags'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='quest',
|
||||
name='title',
|
||||
field=models.CharField(max_length=100),
|
||||
),
|
||||
]
|
|
@ -11,7 +11,7 @@ class Quest(models.Model):
|
|||
"""
|
||||
The meta quest object. Contains general information about the quest.
|
||||
"""
|
||||
title = models.CharField(max_length=200)
|
||||
title = models.CharField(max_length=100)
|
||||
owner = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
on_delete=models.CASCADE)
|
||||
|
|
3
quest/static/edit_quest.css
Normal file
3
quest/static/edit_quest.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
form {
|
||||
padding-left: 10%;
|
||||
}
|
|
@ -26,6 +26,10 @@ h3 {
|
|||
width: 70%;
|
||||
}
|
||||
|
||||
#tags {
|
||||
padding-bottom: 0.25em;
|
||||
}
|
||||
|
||||
.questPost {
|
||||
display: flex;
|
||||
}
|
||||
|
@ -36,7 +40,6 @@ h3 {
|
|||
}
|
||||
|
||||
.questPostData {
|
||||
word-wrap: break-word;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -64,7 +67,6 @@ h3 {
|
|||
|
||||
.poll td {
|
||||
padding: 0.5em;
|
||||
word-wrap: break-word;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
|
@ -138,7 +140,6 @@ h3 {
|
|||
|
||||
.messageContent {
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.msgSrvHr {
|
||||
|
@ -167,7 +168,6 @@ h3 {
|
|||
display: block;
|
||||
position: fixed;
|
||||
background: white;
|
||||
word-wrap: break-word;
|
||||
border: 1px solid #ccc;
|
||||
padding: 0.25em;
|
||||
}
|
||||
|
@ -178,4 +178,9 @@ h3 {
|
|||
|
||||
.quotelink {
|
||||
color: red;
|
||||
text-decoration: underline;;
|
||||
}
|
||||
|
||||
.quotelink:hover {
|
||||
color: red;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Search{% endblock %}
|
||||
{% block head %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ static('search.css') }}">
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form method="get" action="{{ url('search:index') }}">
|
||||
Author: <input type="text" name="author"><br>
|
||||
|
@ -8,10 +11,12 @@
|
|||
<input type="submit">
|
||||
</form>
|
||||
{% if results %}
|
||||
<table>
|
||||
<table id="results">
|
||||
{% for quest in results %}
|
||||
<tr>
|
||||
<td><a href="{{ url('quest:quest', args=[quest.id, '0']) }}">{{ quest.title }}</a></td>
|
||||
<td class="title"><a href="{{ url('quest:quest', args=[quest.id, '0']) }}">{{ quest.title }}</a></td>
|
||||
<td class="summary"></td>
|
||||
<td class="author"><a href="{{ url('user:profile', args=[quest.owner.id]) }}">{{ quest.owner.username }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
23
search/static/search.css
Normal file
23
search/static/search.css
Normal file
|
@ -0,0 +1,23 @@
|
|||
#content {
|
||||
padding-left: 5%;
|
||||
padding-right: 5%;
|
||||
}
|
||||
|
||||
#results {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.author {
|
||||
width: 20%;
|
||||
}
|
|
@ -1,5 +1,31 @@
|
|||
body {
|
||||
margin: 0;
|
||||
background-color: #FAFAFA;
|
||||
color: #111111;
|
||||
font-family: Tahoma, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
input {
|
||||
font-family: Tahoma, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
select {
|
||||
font-family: Tahoma, Helvetica, sans-serif;
|
||||
background-color: #FAFAFA;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background-color: #FAFAFA;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #004070;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #B44444;
|
||||
}
|
||||
|
||||
#globalWrapper {
|
||||
|
@ -11,14 +37,12 @@ body {
|
|||
.header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 2em;
|
||||
list-style-type: none;
|
||||
background-color: #dddddd;
|
||||
background-color: #FAFAFA;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.header span {
|
||||
|
@ -31,12 +55,9 @@ body {
|
|||
padding-left: 0;
|
||||
}
|
||||
|
||||
.header a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#headerHidden {
|
||||
width: 1em;
|
||||
border-right: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#alerts {
|
||||
|
@ -46,4 +67,5 @@ body {
|
|||
#content {
|
||||
flex: auto;
|
||||
overflow: auto;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user