Martin Mahner
ac8789e442
Fixed dtails view
2018-03-27 20:55:02 +02:00
Martin Mahner
c65f225612
Bring back diff view.
2018-03-27 20:54:13 +02:00
Martin Mahner
8d10c0bd1e
POST based snippet delete
2018-03-27 18:42:54 +02:00
Martin Mahner
91560b567c
Fixed tests due to html changes.
2018-03-24 09:08:47 +01:00
Martin Mahner
ace0704f45
Redesign 🚀
2018-03-24 08:57:05 +01:00
Martin Mahner
7efff4fa19
Fixed leading whitespace in API
2018-03-12 13:45:52 +01:00
Martin Mahner
b1b7aa51a4
Added tests to make sure content is saved with leading whitespaces in the db.
2018-03-12 13:42:20 +01:00
Martin Mahner
2a1841ac56
Full metal cleanup
2018-03-12 11:59:38 +01:00
Martin Mahner
6ecde113b6
Fixed CSRF check in API. Closes #94 .
2017-09-13 09:35:47 +02:00
Martin Mahner
cf61cc52d4
Fixed tests for Py3
2017-09-13 09:26:14 +02:00
Martin Mahner
4bdcbdcd20
Removed bootstrap.
2017-09-05 13:43:16 +02:00
Martin Mahner
1167d6fcdb
Changelog
2017-09-01 12:34:57 +02:00
Martin Mahner
54de452f19
further cleanup
2017-03-18 14:08:36 +01:00
Martin Mahner
95aca3588d
Minor cleanup before highlight refactor.
2017-01-21 21:35:38 +01:00
Martin Mahner
0123fc1512
Removed tree
2017-01-21 14:46:05 +01:00
Martin Mahner
e1c3d21f38
Merge branch 'master' into cleanup
2017-01-21 14:45:51 +01:00
Martin Mahner
f6d8c1c742
Fixed missing exception for 404 views in Django 1.9+
2017-01-19 22:46:41 +01:00
Martin Mahner
a6a5bc726b
Backwards incompatible: Removed Gist button feature.
2017-01-19 12:16:07 +01:00
Martin Mahner
ae27acf1f9
Backwards incompatible: django-mptt removal.
...
Removal of django-mptt and therefor the removal of a tree based snippet list, due to performance reasons with large snippet counts.
Snippets still have a 'parent' relation if it's an answer of another snippet, however this is no longer a Nested Set. The UI is simplified too and the user can now only compare an answer to it's parent snippet. I believe this is the major use case anyway.
2017-01-19 12:10:35 +01:00
Martin Mahner
6505f07a2a
Moved template variables into a context processor. Fixed content type handling with Django 1.10.
2016-09-06 15:08:03 +02:00
Brian Harring
fd4beeec73
Use https:// for jquery script download by default.
...
Google offers SSL for the resource, so we might as well use that
as the default to cut off MITM angles.
2016-08-08 23:50:03 +00:00
Martin Mahner
3eba19db02
Moved code highlighting to view.
2016-03-25 11:30:42 +01:00
Martin Mahner
f5cc7fc171
Drop Github Gist Export
2016-03-24 20:16:34 +01:00
Martin Mahner
1c2e26c930
Make all views class-based.
2016-03-24 20:14:13 +01:00
Martin Mahner
b046d8ab87
Backwards incompatible. API calls now need to pass all arguments via POST.
2016-03-23 14:02:48 +01:00
Martin Mahner
b25b9b888e
Cleaned up all imports using isort.
2014-12-14 18:03:35 +01:00
Martin Mahner
8683c4c30d
Further language cleanup.
2014-10-25 12:08:11 +02:00
Jacob Welsh
85a02edb8f
New settings for private installations
...
- The site name in the titles and "about" page can be changed from
dpaste.de
- The Gist feature can be disabled (both the UI and the code that does
the POST)
- A different URL can be given for jquery(.min).js besides google, such
as beside the local static files
2014-10-01 19:31:28 -05:00
Martin Mahner
3bc2eb0c84
Add support to set a lexer with a given filename. Closes issue #63 .
...
This allows third-party API utils to set the lexer automatically based on the open filename.
2014-06-09 20:18:08 +02:00
Martin Mahner
ae61e6f9aa
Added settings docs for Gist changes made in issue #58 .
2014-06-08 20:21:59 +02:00
Martin Mahner
34181e03f7
Added a API value to set the expire time of snippets. Closes issue #64 .
2014-06-08 20:15:59 +02:00
Marco Rougeth
f7e954491c
Abstracting Gist's options
2014-05-05 00:02:54 -03:00
Marco Rougeth
f094e72788
Fixing TypeError when creating gist
2014-05-04 23:52:37 -03:00
Martin Mahner
f627632bdd
One time fixes
2014-01-21 12:30:06 +01:00
Martin Mahner
88be3a6b1f
Support for onetime snippets.
2014-01-21 12:10:52 +01:00
Martin Mahner
dbfbcf54b6
API call accepts the lexer or format parameters now via GET too.
...
With this you can set the format by the url: /api/?format=json
2014-01-11 16:11:42 +01:00
Martin Mahner
130605a04c
Added csrf support. Closes issue #34 .
2013-12-17 22:52:21 +01:00
Martin Mahner
91d40c521a
Added X-Content-Type-Options='nosniff' to the Raw view.
2013-12-17 18:11:25 +01:00
Martin Mahner
6f563ee4ea
Use Python's json now.
2013-11-25 19:36:57 +01:00
Martin Mahner
1069b3a88d
Simplificiation of a snippet GET. No check for Multiple objects, if it really happens, fail loud.
2013-11-25 09:12:51 +01:00
Martin Mahner
c1c43dd51a
A better API that supports more values.
2013-11-24 19:18:56 +01:00
Martin Mahner
f1a0dbab49
Allow to delete all snippets at once.
2013-11-24 18:16:29 +01:00
Martin Mahner
3db308f750
Fixed missing import
2013-09-27 19:30:23 +00:00
Martin Mahner
e34c46f9aa
Fixed snippet delete function.
2013-09-27 17:54:05 +02:00
Martin Mahner
0e251a0392
Merge branch 'develop'
...
Conflicts:
dpaste/urls/dpaste.py
dpaste/views.py
2013-09-27 17:47:09 +02:00
Martin Mahner
2c072e2789
Huge cleanup. Simplified lexer massively. Cleaned up view code. Cleaned up syntax highlighting.
2013-08-15 20:42:02 +02:00
Martin Mahner
2b402680f8
Allow anybody to delete a snippet.
...
I got too many requests in the past, most of because people created snippets via the API and can't delete them, or because of legal issues.
2013-07-19 09:54:18 +02:00
Martin Mahner
f6f04901d6
Create python files on Gist by default
2013-06-05 17:44:56 +00:00
Martin Mahner
8db8977910
Create a Github gist from a snippet.
...
I'm not yet sure how useful it is, since its creates Gists in a anomymous space and not under your account, but if you want to save Snippets permanently, thats the way to go.
2013-06-05 19:40:41 +02:00
Martin Mahner
241180a350
Updated to Django 1.5.1
2013-03-29 19:09:59 +01:00