Skip to content

Commit

Permalink
Merge b3a6084 into f28e4ad
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamoreA committed Dec 19, 2018
2 parents f28e4ad + b3a6084 commit e904afa
Show file tree
Hide file tree
Showing 29 changed files with 1,202 additions and 666 deletions.
6 changes: 6 additions & 0 deletions authors/apps/articles/templates/notification_email.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h1>Hello {{ user }}</h1>
<p>You have a new notification</p>
<p>{{ author }} has published a new article Titled - {{ title }}</p>
<p>Login to your account to view the Article.</p>
<p>Click on the link to login</p>
<p><a href="{{ link }}">Login To Authors Haven</a></p>
6 changes: 6 additions & 0 deletions authors/apps/articles/templates/notification_email.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h1>Hello {{ user }}</h1>
<p>You have a new notification</p>
<p>{{ author }} has published a new article Titled - {{ title }}</p>
<p>Login to your account to view the Article.</p>
<p>Click on the link to login</p>
<p><a href="{{ link }}">Login To Authors Haven</a></p>
20 changes: 7 additions & 13 deletions authors/apps/articles/urls.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
from django.urls import path

from .views import ArticleAPIView, SpecificArticleAPIView, LikeArticle, DislikeArticle
from .views import CommentsListAPIView
from .views import (
FavoriteArticles, UpdateDestroyCommentsAPIView, ReplyListAPIView,
UpdateDestroyReplyAPIView, RatingsAPIView,
ReportListAPIView, ReportArticleAPIView,

)
from authors.apps.articles.extra_views import (
BookMarkCreateAPIView,
BookMarkListAPIView
)

from authors.apps.articles.views.articles import ArticleAPIView, SpecificArticleAPIView, LikeArticle, DislikeArticle
from authors.apps.articles.views.bookmarks import BookMarkCreateAPIView, BookMarkListAPIView
from authors.apps.articles.views.comments import CommentsListAPIView, UpdateDestroyCommentsAPIView
from authors.apps.articles.views.favorites import FavoriteArticles
from authors.apps.articles.views.ratings import RatingsAPIView
from authors.apps.articles.views.reply import ReplyListAPIView, UpdateDestroyReplyAPIView
from authors.apps.articles.views.report_articles import ReportArticleAPIView, ReportListAPIView

urlpatterns = [
path('articles/', ArticleAPIView.as_view(), name='articles'),
Expand Down
Loading

0 comments on commit e904afa

Please sign in to comment.