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
Bart Kamphorst
0965269ee9
Merge pull request #890 from repotag/ignore_footer_header_sidebar_if_empty
...
Do not render footers, headers and sidebars if (after formatting) they are empty. Resolves #398 .
2014-11-05 09:10:28 +01:00
Dawa Ometto
cee0f8b652
Change pages display to handle non-wiki file types with --show_all enabled
2014-11-05 02:30:07 +01:00
Bart Kamphorst
37664d3487
Do not render footers, headers and sidebars if (after formatting) they are empty. Resolves #398 .
2014-11-05 02:15:35 +01:00
Dawa Ometto
7250962ba3
Page header now uses h1-title logic.
2014-11-04 23:23:46 +01:00
Janusz Lewandowski
934affe419
Fix the commit information for page deletion.
...
Now they will be authored by the gollum.author.
2014-10-11 13:15:23 +02:00
Lucas Clemente
16dd7e46ef
allow uploading files by drag and drop
2014-10-05 14:15:48 +02:00
Hardy
ee55b74898
add --mathjax [CONFIG] to inject root-repo/[CONFIG] file,
...
which is similar to the behavior of --css and --js.
CONFIG is "mathjax.config.js" by default.
2014-10-04 23:09:10 -04:00
Dawa Ometto
13fc1e5c66
Merge pull request #872 from Mogztter/issue-870
...
Resolves #870 .
2014-10-04 13:53:03 +02:00
Guillaume Grossetie
2664fdca30
Fix css selector for Asciidoctor h1 html ouptput
2014-10-04 12:45:35 +02:00
Guillaume Grossetie
e05f523145
Horizontal scroll when table is too wide
2014-10-04 12:37:21 +02:00
Geoffrey Roberts
1148d29439
Made the Gollum theme responsive.
...
Not a particularly comprehensive change in style, just one that removes all the fixed sizing for browsers below 940px in width.
Closes #831 .
2014-10-02 00:50:29 +02:00
Sunny Ripert
7ba52978d1
Merge pull request #864 from Mogztter/asciidoc-headers
...
Adds headers to the AsciiDoc editor
2014-09-26 15:48:47 +02:00
Sunny Ripert
138a9fee43
Merge branch 'master' into rc
2014-09-24 10:58:10 +02:00