Dawa Ometto
42439033c8
Release 5.1
2020-08-03 19:07:32 +02:00
Dawa Ometto
421ff18788
Updating assets for bugfix release.
2020-08-03 19:01:29 +02:00
Dawa Ometto
519a275ff0
Fix mathjax config path ( #1605 )
...
Related to #1602
2020-08-03 19:00:49 +02:00
Watal M. Iwasaki
5a95f79b32
Ensure page_route starts with a leading slash ( #1604 )
...
* Ensure page_route starts with a leading slash
* Handle base_url = nil in page_route()
* Refactor page_route()
2020-08-03 18:09:57 +02:00
Dawa Ometto
627ee5bbbe
Merge pull request #1595 from heavywatal/upload-whitespaced-file
...
Address the uploads issue. Resolves #1584
2020-08-03 18:05:27 +02:00
Dawa Ometto
a9d300341c
Merge pull request #1594 from heavywatal/empty-search
...
Show search page even when no parameters are given
2020-07-15 12:46:18 +02:00
Watal M. Iwasaki
4feae80814
Update assets
2020-07-12 17:39:18 +09:00
Watal M. Iwasaki
5f5730fe2e
Address the uploads issue #1584
...
'%20' in filenames are translated back to ' ' in both editor and file creation.
2020-07-12 17:37:20 +09:00
Watal M. Iwasaki
5f784f5e10
Show search page even when no parameters are given
...
This PR addresses the issue #1586
2020-07-12 15:22:18 +09:00
Watal M. Iwasaki
35a44efafd
Address home button issue #1590
...
A trailing slash is added.
This fixes the behavior when base_url is nil.
2020-07-12 13:41:41 +09:00
Dawa Ometto
b32dcfa8dd
Merge pull request #1580 from heavywatal/reduce-direct-base_url
...
Reduce direct use of base_url
2020-06-17 10:37:15 +02:00
Watal M. Iwasaki
38fc32bbdd
Return nil if url.empty? right after url.comact!
2020-06-16 17:55:01 +09:00
Watal M. Iwasaki
6c7b12ae5e
Restore base_url for baseUrl in JavaScript
2020-06-16 17:29:32 +09:00
Dawa Ometto
649e19bdb1
Merge pull request #1578 from tpoliaw/no-edit-compare
...
Let compare versions be used in no-edit mode
2020-06-15 12:13:34 +02:00
Watal M. Iwasaki
a4266170ea
Address the issue #1572 ( #1581 )
...
* Add double-quote to data-file-path={{url}}
2020-06-15 12:02:32 +02:00
Watal M. Iwasaki
6e6d9d8c1f
Use page_route() for custom.css, custom.js, and MathJax
2020-06-14 23:11:07 +09:00
Watal M. Iwasaki
e49758334f
Replace base_url with page_route()
2020-06-14 23:11:07 +09:00
Watal M. Iwasaki
580068212d
Remove base_url from search.mustache
2020-06-14 23:11:07 +09:00
Watal M. Iwasaki
504278d9ba
Move full_url_path from HasPage to Page
...
so that page_route() is accessible via Layout
2020-06-14 23:11:07 +09:00
Watal M. Iwasaki
214056a88a
Refactor regex in clean_url()
2020-06-14 23:11:07 +09:00
Watal M. Iwasaki
e310f76030
Enhance RouteHelpers
...
- page_route() accepts nil and return base_url
- clean_url() accepts multiple args and join them
2020-06-14 23:11:07 +09: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
Bart Kamphorst
8e7a714991
Merge pull request #1577 from gollum/fix_1571
...
Remove superfluous closing div tag. Add ids to all navigation buttons.
2020-06-09 09:30:27 +02:00
Bart Kamphorst
4f67710ed2
Remove superfluous closing div tag. Add ids to all navigation buttons.
2020-06-08 22:09:04 +02:00
Bart Kamphorst
8ec8be5db3
Merge pull request #1576 from mivok/feature/auto_save
...
Add auto save functionality
2020-06-08 21:26:54 +02:00
Watal M. Iwasaki
92da563211
Add quick access to diff of each commit in the history ( #1555 )
2020-06-08 20:49:34 +02:00
Mark Harrison
2eb5a7e4b8
Remove flash-full from the notification class list
...
It doesn't look right with the banner in the new position.
2020-06-05 22:59:20 -04:00
Mark Harrison
23110d5f05
Add autosave/restore for subpages too
2020-06-05 22:51:14 -04:00
Mark Harrison
18de3272e3
Move autosave message elements into the template
2020-06-05 21:34:07 -04:00
Mark Harrison
1e81c42818
Add auto save functionality
...
Fixes #527
This adds auto saving to gollum using local storage.
2020-06-04 22:30:40 -04:00
Dawa Ometto
ef6e0e8a07
Fix gollum link tag highlighting ( #1566 )
2020-05-15 10:29:38 +02: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
Sven Schwyn
4035c579c7
Don't uglify JS in development env ( #1551 )
2020-04-14 11:22:48 +02:00
Yuta Taniguchi
9ab4bbb17c
Fix data-file-path
...
This correct the `data-file-path` attribute's value so that the value includes the ancestor directories to a file.
2020-04-09 23:51:02 +09:00
Watal M. Iwasaki
db84653bf2
Fix a selector in flashNotice()
...
The original selector "#wiki-content h1" matches multiple times
when the page content has h1 headers, resulting in multiple notice
in a page, and what is worse, "$('#gollum-flash').fadeOut()" works
only for the first one.
2020-04-08 22:45:49 +09:00
Dawa Ometto
d8ebba114f
Release 5.0.1
2020-04-04 13:44:00 +02:00
Dawa Ometto
676811206d
Add tests for base_path ( #1540 )
2020-04-03 17:12:09 +02:00
Watal M. Iwasaki
ff1baf0036
Replace redirect_to() with 'redirect to()` ( #1536 )
2020-04-03 15:32:51 +02:00
Sam
3d12aeb8b2
Update layout.mustache ( #1539 )
...
Fix loading of MathJax when run with a base path.
2020-04-03 15:28:00 +02:00
Watal M. Iwasaki
0cb303f09f
Check page.nil? before page.wiki ( #1535 )
2020-04-02 11:07:33 +02:00
Dawa Ometto
1056d5cf16
Update static assets
2020-03-30 11:23:26 +02:00
Bart Kamphorst
5c3394c227
Merge pull request #1522 from gollum/fix_1516
...
Improve CSS styling on 5.x using Primer.CSS. Fixes #1515 #1516 #1518 .
2020-03-30 10:52:22 +02:00
Bart Kamphorst
c99da8ff34
Hide the correct html elements for printing. Fixes #1516 .
2020-03-30 10:16:18 +02:00
Bart Kamphorst
9ab308412c
Let Primer.CSS style <hr> element.
2020-03-30 10:06:53 +02:00
Bart Kamphorst
4efcba6ceb
Let Primer.CSS determine H1-H6 styling ( fixes #1515 ).
2020-03-30 09:52:34 +02:00
Dawa Ometto
1f70dca752
Minor
2020-03-30 01:35:56 +02:00
Dawa Ometto
d32c5a88f7
Actually package the sprockets manifest.
2020-03-30 01:30:05 +02:00
Dawa Ometto
6e37601b25
Add therubyrhino to dependencies
2020-03-29 22:35:44 +02:00
Dawa Ometto
4c491a01db
Fix highlights. Resolves #1506 ( #1510 )
2020-03-27 17:10:03 +01:00
Bart Kamphorst
ebf46629b1
Merge pull request #1504 from heavywatal/align-right-edge
...
Remove a tiny padding in the head div
2020-03-27 13:05:14 +01:00