SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
835b7270
Commit
835b7270
authored
5 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Mail messages list: login required
parent
eec3f2a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apimail/urls.py
+1
-1
1 addition, 1 deletion
apimail/urls.py
apimail/views.py
+8
-1
8 additions, 1 deletion
apimail/views.py
with
9 additions
and
2 deletions
apimail/urls.py
+
1
−
1
View file @
835b7270
...
@@ -104,7 +104,7 @@ urlpatterns = [
...
@@ -104,7 +104,7 @@ urlpatterns = [
path
(
# /mail/messages
path
(
# /mail/messages
'
messages
'
,
'
messages
'
,
TemplateView
.
as_view
(
template_name
=
'
apimail/
message_list
.html
'
)
,
views
.
message_list
,
name
=
'
message_list
'
name
=
'
message_list
'
),
),
path
(
# /mail/attachment_file/<uuid>
path
(
# /mail/attachment_file/<uuid>
...
...
This diff is collapsed.
Click to expand it.
apimail/views.py
+
8
−
1
View file @
835b7270
...
@@ -4,12 +4,19 @@ __license__ = "AGPL v3"
...
@@ -4,12 +4,19 @@ __license__ = "AGPL v3"
import
mimetypes
import
mimetypes
from
django.contrib.auth.decorators
import
login_required
from
django.http
import
HttpResponse
from
django.http
import
HttpResponse
from
django.shortcuts
import
get_object_or_404
from
django.shortcuts
import
get_object_or_404
,
render
from
.models
import
AttachmentFile
from
.models
import
AttachmentFile
@login_required
def
message_list
(
request
):
return
render
(
request
,
'
apimail/message_list.html
'
)
@login_required
def
attachment_file
(
request
,
uuid
):
def
attachment_file
(
request
,
uuid
):
"""
"""
Return an attachment file.
Return an attachment file.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment