-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload #40
Open
HN23
wants to merge
17
commits into
greyside:master
Choose a base branch
from
HN23:upload
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Upload #40
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6b17a3f
markup with oembedding
HN23 c1ff9ee
Merge pull request #37 from HN23/markup
SeanHayes e73f8b1
working upload
HN23 93e2125
made fixes and rebase
HN23 b969b37
Updated setup config.
SeanHayes 2fbef9b
changed so that upload with media_type.none gives url
HN23 d721758
renamed to media
HN23 c1d4297
working upload
HN23 5b3128b
made fixes and rebase
HN23 dd31445
changed so that upload with media_type.none gives url
HN23 61c5909
renamed to media
HN23 5abb493
Merge branch 'upload' of https://github.com/HN23/django-mesh into upload
HN23 19fe54a
removed old js
HN23 2c81298
new js files
HN23 9f76f73
removed glyphicons
HN23 ba55aa3
added fonts
HN23 ed1c375
spacing fixes
HN23 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,8 @@ | ||
# -*- coding: utf-8 -*- | ||
from django import forms | ||
|
||
class UploadForm(forms.Form): | ||
upload_file = forms.FileField( | ||
label='Select a file', | ||
help_text='max. 42 megabytes' | ||
) |
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 +1 @@ | ||
{% extends "base.html" %} | ||
{% extends "base.html" %} |
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,23 @@ | ||
{% extends "django_mesh/base.html" %} | ||
|
||
{% block content %} | ||
|
||
<div class="media_list"> | ||
{% if media_list %} | ||
|
||
{% for media in media_list %} | ||
<div> | ||
<a href="{% url 'mesh_media_view' slug=media.slug %}">{{ media.title|safe }}</a> | ||
<div class="container2"> | ||
|
||
<p> <embed src="{{ media.get_file_url }}" autoplay="false" height="120" width="200"> | ||
</p> | ||
</div></div> | ||
{% endfor %} | ||
|
||
{% else %} | ||
There are no files to display. | ||
{% endif %} | ||
</div> | ||
|
||
{% endblock content %} |
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,16 @@ | ||
{% extends "django_mesh/base.html" %} | ||
|
||
{% block extra_head %} | ||
<link rel="alternate" type="application/json" href="{% url 'mesh_oembed' slug=media.slug %}" title="{{ media.title }}"></link> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<div class="media_list"> | ||
{% ifequal media.media_type 1 %} | ||
<a href="{{ media.get_file_url }}"> {{ media.oembed_html | safe}}</a> | ||
{% else %} | ||
{{ media.oembed_html | safe}} | ||
{% endifequal %} | ||
|
||
{% endblock content %} |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
<h2>{{ post.title }}</h2> | ||
|
||
{{ post.rendered_text }} | ||
{{ post.rendered_text|safe }} | ||
</div> | ||
</div> | ||
</div> | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make plural