-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community/: Add a webpage for Listing Issues
This commit adds a general view for listing all the issue objects for any model which stores issue related details. The details which are compulsory needed are Hoster, Repository name, Issue title, Number and the URl of it. using this, the commit adds a webpage for displaying all the inactive issues. Closes #288
- Loading branch information
Showing
10 changed files
with
99 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ package_module: community | |
packages: | ||
- community | ||
- activity | ||
- inactive_issues | ||
- data | ||
- gci | ||
- gsoc | ||
|
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
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
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
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,24 @@ | ||
# Generated by Django 2.1.7 on 2019-08-02 11:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('data', '0008_auto_20190802_0745'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='InactiveIssue', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('hoster', models.CharField(max_length=30)), | ||
('title', models.CharField(max_length=500)), | ||
('repository', models.CharField(max_length=100)), | ||
('number', models.SmallIntegerField()), | ||
('url', models.URLField()), | ||
], | ||
), | ||
] |
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
This file was deleted.
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
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
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,48 @@ | ||
{% extends 'base.html' %} | ||
{% load staticfiles %} | ||
|
||
{% block main-content %} | ||
<div class="web-page-details apply-flex center-content"> | ||
<h3 style="padding-right: 15px">~</h3> | ||
<h3 class="page-name"> | ||
{{ page_name }} | ||
</h3> | ||
<h3 style="padding-left: 15px">~</h3> | ||
</div> | ||
<div class="issues-list" style="margin: auto; width: 60%; min-width: 350px; | ||
padding-bottom: 30px;"> | ||
{% if object_list.count > 0 %} | ||
<table class="highlight centered"> | ||
<thead> | ||
<tr class="custom-green-color-font"> | ||
<th> | ||
<h5>Hoster</h5> | ||
</th> | ||
<th> | ||
<h5>Title</h5> | ||
</th> | ||
<th> | ||
<h5>Issue</h5> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for issue in object_list %} | ||
<tr> | ||
<td>{{ issue.hoster }}</td> | ||
<td>{{ issue.title }}</td> | ||
<td class="bold-text"> | ||
<a href="{{ issue.url }}">{{ issue.repository }}#{{ issue.number }}</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% else %} | ||
<h5 class="empty-list apply-flex center-content" style="min-height: 124px"> | ||
No Issues Found! <i class="fa fa-smile-o"></i> | ||
</h5> | ||
{% endif %} | ||
</div> | ||
|
||
{% endblock %} |