-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
127 additions
and
49 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
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,30 @@ | ||
# Generated by Django 3.2 on 2021-04-30 01:22 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('planet', '0003_blogpost_rank'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('forum', '0017_expanded_log'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Herald', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('url', models.URLField(max_length=10000)), | ||
('text', models.TextField(max_length=10000)), | ||
('html', models.TextField(max_length=10000)), | ||
('date', models.DateTimeField()), | ||
('status', models.IntegerField(choices=[(0, 'Submitted'), (1, 'Declined'), (3, 'Published'), (2, 'Accepted')], db_index=True, default=0)), | ||
('blog_post', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='planet.blogpost')), | ||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
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 "forum_list.html" %} | ||
{% load forum_tags %} | ||
{% load static %} | ||
{% load humanize %} | ||
{% load cache %} | ||
|
||
{% block title %} | ||
Biostar Herald | ||
{% endblock %} | ||
|
||
{% block headtitle %} | ||
Biostar Herald | ||
{% endblock %} | ||
|
||
{% block body %} | ||
|
||
<div class="ui vertical segment"> | ||
<h2 class="ui header"> | ||
<img src="{% static 'images/news-herald.png' %}"> | ||
<div class="content"> | ||
{{ blogpost.title }} | ||
<div class="sub header">Share bioinformatics resources from across the web.</div> | ||
</div> | ||
</h2> | ||
</div> | ||
|
||
{% block inner %} | ||
<div class="ui vertical segment"> | ||
<div class="ui relaxed divided list"> | ||
|
||
{% for herald in heralds %} | ||
|
||
<div class="item">{{ herald.html|safe }}</div> | ||
{% empty %} | ||
<div class="ui blue message">No results found.</div> | ||
{% endfor %} | ||
|
||
</div> | ||
|
||
</div> | ||
{% endblock %} | ||
|
||
{% endblock %} | ||
|
||
{% block sidebar %} | ||
|
||
|
||
{% endblock %} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Here are the latest things shared amongst our user base. | ||
|
||
{% for herald in heralds %} | ||
- {{herald.user.profile.name}} suggest {{herald.url}} | ||
|
||
- {{herald.user.profile.name}} shared {{herald.url}} | ||
|
||
{% endfor %} |
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