Nikita Ivanov
97ed5a7c57
Add tests to the ? in page name fix ( #1641 )
2020-12-14 11:24:50 +01:00
Dawa Ometto
137728cdab
Guard against malicious file names
2020-12-01 22:21:54 +01:00
Dawa Ometto
123518b940
Don't escape page path. Resolves #1615 ( #1618 )
2020-09-21 15:50:58 +02:00
Peter Holloway
83abe62125
Use GET for compare methods
...
POST requests are blocked when running in --no-edit mode so using POST
prevents compare being available (see #1546 ).
Change the history view form to use "get" as the form method and change
the routing in app to accept get requests for both forms of compare. The
order of the compare routes is switched to make the more specific form
checked first to prevent all requests being handled by the less specific
form.
2020-06-10 23:27:48 +01:00
Watal M. Iwasaki
ba575b886d
Simulate 'git show' when a single version is posted from /history/ ( #1543 )
2020-04-16 12:50:45 +02:00
Dawa Ometto
b9d7375dba
Fix migration script when using page-file-dir ( #1542 )
2020-04-04 13:43:29 +02:00
Dawa Ometto
676811206d
Add tests for base_path ( #1540 )
2020-04-03 17:12:09 +02:00
Watal M. Iwasaki
0cb303f09f
Check page.nil? before page.wiki ( #1535 )
2020-04-02 11:07:33 +02:00
Dawa Ometto
2c268a9f8c
Add regression test against #1530
2020-03-31 11:56:42 +02:00
Dawa Ometto
e2804d6313
Add RSS Feed ( #1500 )
2020-03-27 10:37:50 +01:00
Bart Kamphorst
2ba5d389a8
Fix breadcrumb tests.
2020-03-25 21:15:13 +01:00
Dawa Ometto
0b1d7ab01c
Update migration script ( #1497 )
...
* Add whitespace -> hyphens
* Update README
2020-03-25 12:29:39 +01:00
Dawa Ometto
a45101cfe9
Package assets ( #1493 )
...
* Package static assets
* Fixed cancel button in editor
* Fix rake compilation task
* Add asset path helper
* Serve MathJax statically
* Fix mathjax in preview
2020-03-24 15:55:28 +01:00
Dawa Ometto
d5970d6274
Tag compatibility. Resolves #1487 ( #1492 )
...
* Add --global-tag-lookup
* Add bin/gollum-migrate-tags
* Add migration tests (not on Travis)
2020-03-22 17:40:13 +01:00
Dawa Ometto
f6f81b39f8
Remove more references to grit and start updating readme ( #1486 )
...
* Remove more references to grit
* Update History and Readme
2020-03-18 18:17:22 +01:00
Dawa Ometto
54bbd1d789
Remove references to grit and stringex ( #1482 )
...
* Remove references to grit and stringex
* Fix revert tests, fix revert commit message
2020-03-16 01:59:47 +01:00
Dawa Ometto
ee267f72a2
Track path changes in History. Resolves #1441 ( #1443 )
...
* Track path changes in History.
* Reactivate rename following on JRuby
2020-03-16 01:09:42 +01:00
Bart Kamphorst
4d549b1660
Use tmpdir instead of tempfile for creating temporary repos in the test suite.
2020-03-13 17:07:15 +01:00
Dawa Ometto
caf4da73e2
Fix Windows assets and tests ( #1425 )
...
* Fix Windows assets and tests
* Update gemojione
2019-12-15 21:52:37 +01:00
Bart Kamphorst
7458e396ee
Add tests to ensure protection of redirects file.
2019-10-05 18:07:54 +02:00
Bart Kamphorst
8f104ec09c
Add redirect support (e.g., after renames). Fixes #1023 .
2019-10-05 13:32:28 +02:00
Dawa Ometto
bbe609974a
Fix change of format ( #1419 )
...
* Add empty language def for bibtex
2019-09-25 11:44:42 +02:00
Dawa Ometto
88c624877e
Extract page dir from latest changes. Fix #1388 ( #1395 )
...
* Strip off page_dir prefix from latest changes urls
* Rename spurious next and previous_link
* New format for LatestChanges#versions: detect renames
2019-09-18 18:10:09 +02:00
Dawa Ometto
d55a3432a2
Solve minor issue involving Preview title ( #1417 )
2019-09-11 15:47:41 +02:00
Bart Kamphorst
a04af6c638
Remove failing base-path test because base-path functionality is implemented in Rack middleware.
2019-09-04 13:56:26 +02:00
Bart Kamphorst
1c98a787ab
Reopen the tempfile before passing it to Rack::Test::UploadedFile.
2019-09-03 22:03:43 +02:00
Bart Kamphorst
b6b176fdc1
Add uploading tests for mode page, with and without base-path enabled.
2019-09-03 11:33:53 +02:00
Dawa Ometto
d1b1375629
Fix usericons ( #1408 )
...
* Fix and refactor user icons, add Basic tests
* Remove identicon_canvas, use identicon.js
* Use octicon by default
2019-09-01 21:45:55 +02:00
Bart Kamphorst
beff52a68e
Added tests for file_upload route.
2019-08-29 16:01:20 +02:00
Dawa Ometto
976f55e1b2
Pagination for history and latest changes. ( #1396 )
...
* Pagination for history and latest changes
* New footer for historical pages
* Fix pagination on history view.
* Do not directly use git adapter
* History view: allow selecting from different pages
* Use log_pagination_options to determine latest changes parameters
* Fix JS pageFullPath
2019-08-21 23:28:49 +02:00
Bart Kamphorst
92b17f9053
Removed some inline CSS. Removed footer from preview pages.
2019-08-14 16:39:55 +02:00
Bart Kamphorst
8413e5b5ee
Merge branch '5.x' into primer_css
2019-08-13 22:46:19 +02:00
Bart Kamphorst
aa16f6ba2a
Major CSS/styling overhaul with Primer.css.
2019-08-13 22:10:10 +02:00
Dawa Ometto
e28a41bb8f
Fix breadcrumbs ( #1387 )
2019-05-18 14:42:42 +02:00
Dawa Ometto
b40a344c49
Remove page file dir from frontend. Resolves #1052 #1241 ( #1369 )
...
* Remove all references to page_file_dir. Use new method signature for Wiki#page. Refactor helpers.
* Use write_file for uploads
* Refactor /pages route
2019-05-04 01:19:59 +02:00
Bart Kamphorst
e966de6922
Added tests for mathjax.config.js permissions. Fixed typo in permission regex.
2018-12-28 22:57:13 +01:00
Bart Kamphorst
59bb48340e
Fix test by adding new h2 editable class to expected output.
2018-12-28 22:45:17 +01:00
Bart Kamphorst
4eb7fd211c
Fix tests (do not expect redirect after edit) and add test for edit collisions.
2018-11-20 14:53:27 +01:00
Bart Kamphorst
64c4ee9c05
Improve upload handling (server-side and UI).
2018-11-07 11:06:25 +01:00
Bart Kamphorst
19751ec37f
Use snake_case uniformly for all routes.
2018-10-19 21:54:14 +02:00
Bart Kamphorst
814caff755
Merge pull request #1336 from gollum/unify_deletion_routes
...
Unify deletion routes. Implement ajax deletion for /pages. Closes #1332 .
2018-10-19 21:41:33 +02:00
Dawa Ometto
78289a53bb
Implement header counting using YAML frontmatter. Resolves #908 ( #1330 )
2018-10-19 16:09:23 +02:00
Bart Kamphorst
454b5e94dc
Unify deletion routes. Closes #1332 .
2018-10-17 22:18:23 +02:00
Bart Kamphorst
6475394133
Use new view helper method in /pages. Add /deleteFile route to helpers. Fix bug in breadcrumb of /Home.
2018-10-17 14:47:35 +02:00
Dawa Ometto
197a2bd57b
Namespace ( #1328 )
...
* CSS to SCSS
* Use sprockets
* Use Sprockets helpers
* Fix gollum.editor.js error when changing language
* Add keybinding files required by ace and some ace ext files that are required or might be useful.
* Move app paths to /gollum namespace, add route helpers for view templates
* Use path helper for links in page view
* Use path helper methods in javascript assets
* Refactored sprockets helpers for mustache
* Remove debugging
2018-10-14 15:46:10 +02:00
Bart Kamphorst
5c5bfc71bd
Merge pull request #1326 from gollum/fix_pages_view_urls
...
Fix url generation in pages view.
2018-10-07 14:39:33 +02:00
Bart Kamphorst
3b9af34e0d
Fix url generation in pages view. Show full filename with extension for pages. Distinguish in HTML between file and pages.
2018-10-05 14:48:42 +02:00
Dawa Ometto
f8673f565a
Lockdown write access to custom.css and js
2018-10-02 23:56:46 +02:00
Dawa Ometto
6d4f97fdc4
Add custom.css and custom.js files to example repo
2018-10-02 23:56:16 +02:00
Dawa Ometto
c85e14336e
Lockdown access to custom css and js files in repo
2018-10-02 23:31:07 +02:00