Jérémie Astori
e2d55b45ba
Fix compare page not accessible in no-edit mode
...
Permission checking was spread across `post` action handlers instead of inside the `before` to normalize between `get` and `post` action handlers and be more explicit.
2017-02-24 13:32:20 +01:00
Sven Schwyn
8da809f22c
Update gemojione to 3.2
...
https://github.com/gollum/gollum-lib/issues/226
2016-12-28 23:49:39 +01:00
Dawa Ometto
abb516e1b1
Merge pull request #1155 from gollum/dont_wait_on_versions
...
Remove calls to Page#last_version. Closes #1078 .
2016-08-07 20:28:52 +02:00
Dawa Ometto
435a3e62ba
Remove calls to Page#last_version, replace with AJAX-lookup of version info.
2016-08-07 20:09:01 +02:00
Maarten Engelen
236680aab9
Add file deletion functionality
...
Adds route for file deletion
Add styles and images for this
2016-08-07 17:18:36 +02:00
Dawa Ometto
330f7b4002
Add Safari to livepreview-enabled browsers. Fixes #503
2016-06-16 12:58:22 +02:00
Sven Schwyn
fa1bcf9608
Add support for emojione
2016-05-19 20:33:25 +02:00
Jean Hominal
91833dd72e
Use last_version instead of versions when possible. Fixes #1087 .
...
Use Gollum::Page#last_version instead of Gollum::Page#versions in the
cases identified in #1087 :
* In Precious::App#show_page_or_file
* In Precious::Views::Page#author
* In Precious::Views::Page#date
2016-02-14 23:15:38 +01:00
Dawa Ometto
f876aa7d0f
Merge pull request #1077 from mpnowacki/renaming
...
fixed file renaming issues with page_file_dir
2015-11-02 11:42:50 +01:00
ngyuki
90072a9332
Fix position of sidebar in preview
2015-11-02 12:45:30 +09:00
mpnowacki
3811fb46b3
fixed file renaming issues with page_file_dir. This will only work with appropriate changes in gollum-lib
2015-10-04 11:34:25 +02:00
Dawa Ometto
ab42c0c0df
Release 4.0.1
2015-09-20 14:48:32 +02:00
Bart Kamphorst
ce68a88293
Added security check.
2015-09-20 13:53:02 +02:00
Matt Hill
51b5a11a54
Fix custom.x path when page-file-dir is not set
2015-08-20 23:19:25 -04:00
Joshua Swanson
73e61dbcff
Changed layout template, to correctly handle custom.js when --page-file-dir is set
2015-08-05 13:26:19 +01:00
GROUX Richard
f9e5c05046
Fix search without querry
...
App crash when we try to get /search
Add an empty querry '' as default
2015-07-21 19:35:45 +02:00
Nathan Lowe
8a6a8db730
Fix #1030 : Disable AJAX Cach in Live Editor
...
Internet Explorer caches all AJAX get requests and decides when to expire
them in the cache. This commit disables caching on the GET request to
/data/<PAGE NAME>, which fixes IE displaying old page data when using the
live editor.
See http://www.dashbay.com/2011/05/internet-explorer-caches-ajax/ and
https://stackoverflow.com/questions/4303829/how-to-prevent-a-jquery-ajax-request-from-caching-in-internet-explorer
2015-07-03 17:28:43 -04:00
Nathan Lowe
279b028c5e
Fix #1012 : /Pages should render Folders First, then files, alphabetically
2015-05-20 18:58:10 -04:00
Dawa Ometto
f268827a2e
Merge pull request #995 from tfogo/html-cleanup
...
Remove extraneous li tags
2015-04-26 19:05:00 +02:00
Dawa Ometto
5781ac6bbd
Release 4.0.0
2015-04-11 11:32:03 +02:00
Tim Fogarty
93af289d3b
Remove extraneous li tags
2015-04-06 02:40:02 -04:00
Kirat Singh
e4df298bb4
prepend baseUrl to /uploadFile
2015-04-05 14:22:41 -04:00
Dawa Ometto
804d21e31d
Release 3.1.3
2015-04-04 11:45:17 +02:00
Dawa Ometto
21bb1efb46
Block on no-edit without using middleware
2015-04-03 17:22:51 +02:00
Dawa Ometto
9d0986f1ca
Merge pull request #964 from simonzack/mathjax_livepreview
...
Enable mathjax in live preview
2015-04-02 13:13:25 +02:00
Andrew Arrow
09364850ee
adding template dir logic to app.rb vs. just the bin
2015-03-27 15:13:55 -07:00
Dawa Ometto
af6d690fc8
Add root slash to drag-and-drop upload path. Resolves #969 .
2015-01-30 22:06:31 +01:00
Sunny Ripert
f964407c47
Merge pull request #965 from simonzack/ace_hook
...
added an initAce hook to allow configuration of the live editor
2015-01-28 17:00:43 +01:00
simonzack
3be2e76ec0
enable $ inline expressions so the example markdown doc works, $ can be escaped using \$ so shouldn't be much of an issue
2015-01-28 19:06:24 +11:00
simonzack
f9a9b90ed7
enable mathjax in live preview
2015-01-28 18:00:35 +11:00
simonzack
fe1a8569f6
updated ace
2015-01-27 22:46:30 +11:00
simonzack
33e8d4f328
added an initAce hook to allow configuration of the live editor
2015-01-27 21:16:05 +11:00
Dawa Ometto
b4023942b4
Remove page file dir from upload path
2015-01-26 23:10:28 +01:00
simonzack
915f63cac4
pixel tweaks so the left scrollbar is selectable and the viewport takes the whole page
2015-01-26 04:15:14 +11:00
Dawa Ometto
5c30ff4d3e
Release 3.1.2
2015-01-23 00:27:04 +01:00
Dawa Ometto
e5c2e3b3eb
Set the allow_editing wiki option to true by default.
2015-01-23 00:14:13 +01:00
Nathan Lowe
a650c0eab8
Sort /pages alphabetically
...
Previously, the 'All Pages' view was not sorted alphabetically. We need
to sort on the lowercase version of the page names so that lowercase
names do not end up at the bottom of the list and are instead mixed in
alphabetically, as they should be.
Patches test/test_latest_changes_view.rb to include changes needed to
test alphabetical sorting.
2015-01-12 19:04:07 -05:00
Dawa Ometto
355db16d2c
Allow utf-8 page names when not using grit.
2015-01-04 12:20:25 +01:00
Janusz Lewandowski
afb7d4c9d1
Encode the page title in the URL of a diff page.
2015-01-03 17:56:51 +01:00
Geoffrey Roberts
93cbc6c770
Fix intermittent wiki_options errors
...
Changed to resolve intermittent errors where I'd see the following in my logs:
```text
ERROR -- : app error: undefined method `wiki_options' for Precious::App:Class (NoMethodError)
ERROR -- : /home/gollum/production/releases/20141229-172128/vendor/bundle/ruby/2.0.0/gems/gollum-3.1.1.1anchor4/lib/gollum/editing_auth.rb:10:in `call'
ERROR -- : /home/gollum/production/releases/20141229-172128/vendor/bundle/ruby/2.0.0/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
...
```
I suspect this is the case for Sinatra applications that host instances of Gollum using its `map` feature, as this reflects the production setup we're using it in. Calling @app.settings.wiki_options uses the app instance that gets passed into Precious::EditingAuth, thereby ensuring that we're getting a Gollum instance all the time.
2014-12-29 17:28:47 +11:00
Dawa Ometto
c2b605a90f
Release 3.1.1
2014-12-04 14:06:57 +01:00
Dawa Ometto
09149592b5
Set allow_editing in Precious::App to true by default. Closes #911
2014-12-04 13:53:58 +01:00
Dawa Ometto
c78dbc8bc1
Merge branch 'master' into rc
...
Conflicts:
README.md
lib/gollum/app.rb
2014-11-28 13:36:21 +01:00
Dawa Ometto
9f8a90c0ac
Merge pull request #875 from ut7/latest-changes
...
Add a "latest changes" button and page
2014-11-27 19:22:42 +01:00
Dawa Ometto
8b8ef0eb46
Prepare new release.
2014-11-27 13:51:02 +01:00
Dawa Ometto
3ec75b84ae
Merge pull request #898 from bambycha/editable
...
Disable editing from UI
2014-11-22 12:15:24 +01:00
Roman Bambycha
b932763080
add function to disable editing, resolves #879
2014-11-17 19:46:46 +02:00
Étienne Charignon
374f8f2f69
First attempt at a global latest changes overview.
...
- uses a wiki_options entry named :latest_changes_count instead of a
constant
- lists modified pages with links
2014-11-11 22:43:34 +01:00
Dawa Ometto
c78a9f7950
Fix sidebar, header, and footer, and add regression test.
2014-11-10 22:39:42 +01:00
Dawa Ometto
2c80db6678
Route /filename/[commit-sha] will display specific revision of a file. Resolves #892 .
2014-11-06 21:31:23 +01:00