Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
8923b212
Commit
8923b212
authored
May 15, 2023
by
Jan Enzo Salvador
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved to the template folder since template/forum folder was deleted.
parent
ea12e733
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
81 deletions
+0
-81
forum.html
widget_aguandhischipmunks/forum/templates/forum/forum.html
+0
-29
forumpost-add.html
...uandhischipmunks/forum/templates/forum/forumpost-add.html
+0
-14
forumpost-details.html
...hischipmunks/forum/templates/forum/forumpost-details.html
+0
-26
forumpost-edit.html
...andhischipmunks/forum/templates/forum/forumpost-edit.html
+0
-12
No files found.
widget_aguandhischipmunks/forum/templates/forum/forum.html
deleted
100644 → 0
View file @
ea12e733
{% extends 'base.html' %}
{% load static %}
{% block title %} Widget's Forum {% endblock %}
{% block content %}
<h1>
Welcome to Widget's Forum!
</h1>
<h2>
Forum posts:
</h2>
<ul>
{% for forumpost in forumposts %}
<li>
<a
href=
"{{forumpost.get_absolute_url}}"
>
{{ forumpost.title }} by {{ forumpost.author.firstname }} {{ forumpost.author.lastname }}
</a>
</li>
{% endfor %}
</ul>
<form
action=
"forum/forumposts/add"
>
<button
type=
"submit"
>
New Post
</button>
</form>
<li><a
href=
"/dashboard"
>
Dashboard
</a>
<br></li>
<li>
<a
href=
"/announcements"
>
Announcements
</a>
<br></li>
<li>
<a
href=
"/assignments"
>
Assignments
</a>
<br></li>
<li><a
href=
"/calendar"
>
Calendar
</a>
<br></li>
{% endblock %}
widget_aguandhischipmunks/forum/templates/forum/forumpost-add.html
deleted
100644 → 0
View file @
ea12e733
{% extends 'base.html' %}
{% load static %}
{% block title %} Add Post {% endblock %}
{% block content %}
<h1>
Add a new post:
</h1>
<form
method=
"POST"
>
{% csrf_token %}
{{form.as_p}}
<button
type=
"submit"
>
Save New Post
</button>
</form>
{% endblock %}
widget_aguandhischipmunks/forum/templates/forum/forumpost-details.html
deleted
100644 → 0
View file @
ea12e733
{% extends 'base.html'%}
{% block title %}
{{ object.title }}
{% endblock %}
{% block content %}
<h1>
{{ object.title }}
</h1>
<ul>
<p>
by {{ object.author.firstname }} {{ object.author.lastname }}
</p><br>
<p>
{{ object.pub_datetime|date:"m/d/Y, h:i A" }}
</p><br>
<p>
{{ object.body }}
</p><br>
<p>
POST REPLIES:
</p><br>
{% for reply in object.replies.all %}
<p>
by {{ reply.author.firstname }} {{ reply.author.lastname }}
</p>
<p>
{{ reply.pub_datetime|date:"m/d/Y, h:i A" }}
</p>
<p>
{{ reply.body }}
</p>
{{% endfor %}}
</ul>
<form
action=
"./edit"
>
<button
type=
"submit"
>
Edit Post
</button>
</form>
{% endblock %}
widget_aguandhischipmunks/forum/templates/forum/forumpost-edit.html
deleted
100644 → 0
View file @
ea12e733
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Post {% endblock %}
{% block content %}
<h1>
Edit Post:
</h1>
<form
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<button
type=
"submit"
>
Save Changes to Post
</button>
</form>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment