This repository has been archived by the owner on May 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added base template, added minimu UI kit
- Loading branch information
Showing
9 changed files
with
92 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$(document).ready(function() { | ||
$(".chosen").chosen({ | ||
width: "250px", | ||
"disable_search": true | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% load staticfiles %} | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
|
||
<title>Fora</title> | ||
|
||
{% block extra_css %}{% endblock extra_css %} | ||
|
||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> | ||
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans:400,600"> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/minimu.min.css' %}"> | ||
</head> | ||
<body> | ||
{% block content %}{% endblock content %} | ||
{% block extra_js %}{% endblock extra_js %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<a href="{% url 'forums:update' object.slug %}">Update</a> | ||
<a href="{% url 'forums:visibility' object.slug %}">Change Visibility</a> | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<a href="{% url 'threads:new' %}" class="btn btn-green">New Thread</a> | ||
<a href="{% url 'forums:update' object.slug %}" class="btn btn-grey">Update</a> | ||
<a href="{% url 'forums:visibility' object.slug %}" class="btn btn-grey">Change Visibility</a> | ||
|
||
<h1>{{ object.name }}</h1> | ||
<p>{{ object.description }}</p> | ||
<p>{{ object.description }}</p> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<form action="" method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<input type="submit" value="Create Forum" /> | ||
</form> | ||
{% if object %} | ||
<input type="submit" value="Update Forum" class="btn btn-green" /> | ||
{% else %} | ||
<input type="submit" value="Create Forum" class="btn btn-green" /> | ||
{% endif %} | ||
</form> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
<a href="{% url 'forums:new' %}">New Forum</a> | ||
{% extends "base.html" %} | ||
|
||
{% for forum in object_list %} | ||
<div> | ||
<h1>{{ forum.name }}</h1> | ||
<p>{{ forum.description }}</p> | ||
</div> | ||
{% empty %} | ||
<p>No forums found</p> | ||
{% endfor %} | ||
{% block content %} | ||
<a href="{% url 'forums:new' %}" class="btn btn-green">New Forum</a> | ||
|
||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for forum in object_list %} | ||
<tr> | ||
<td><a href="{% url 'forums:show' forum.slug %}">{{ forum.name }}</a></td> | ||
<td>{{ forum.description }}</td> | ||
</tr> | ||
{% empty %} | ||
<tr> | ||
<td colspan="2">No forums found</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h1>{{ object.subject }}</h1> | ||
<p>Forum: <a href="{% url 'forums:show' object.forum.slug %}"></a></p> | ||
<p>{{ object.created }}</p> | ||
<p>Forum: <a href="{% url 'forums:show' object.forum.slug %}">{{ object.forum.name }}</a></p> | ||
<p>{{ object.created }}</p> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<form action="" method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<input type="submit" value="Create Thread" /> | ||
</form> | ||
{% if object %} | ||
<input type="submit" value="Update Thread" class="btn btn-green" /> | ||
{% else %} | ||
<input type="submit" value="Create Thread" class="btn btn-green" /> | ||
{% endif %} | ||
</form> | ||
{% endblock content %} |