benjamin wil
51f2f032d7
Add I18n interface for use in Mustache templates ( #1679 )
...
* Add `i18n` dependency
We will use `i18n` to provide localization for Gollum's frontend. I
chose this because it's a well-supported, pretty normal Ruby library.
* Configure I18n
- Locale files will be kept in `lib/gollum/locales/[lang].yml`
- The available locales, to start, will be English (`en`).
* Add I18n interface for mustache templates
This commit adds an interface that allows mustache templates to get I18n
translation strings, transform any arguments that may be present in
them, and then render them on the frontend.
This is our first real step to getting internationalizing the Gollum
frontend.
2021-06-27 09:26:45 -07: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
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
cabe9f353b
Fix tests
2017-04-13 00:24:06 +02:00
Dawa Ometto
cce871c30e
Allow running tests with alternative adapter
2014-12-08 01:44:01 +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
bootstraponline
452d825e66
Clean up tests. Remove templates
2014-04-05 13:30:02 -04:00
bootstraponline
a7a1c4f81e
Fix utf8 test
2014-04-05 13:30:02 -04:00
bootstraponline
00740eb9e8
Fix locale warning
2014-04-05 13:30:02 -04:00
Jamie Oliver
1f79126b27
Move gollum back end to gollum-lib #647
2013-03-19 22:11:09 +00:00
bootstraponline
78e4dfbece
Fix metadata tests
2013-01-08 17:09:21 -05:00
bootstraponline
be1883f317
Use HTTPS rubygems
...
Update gemspec
2012-11-16 17:07:38 -07:00
Joshua Peek
e8b3854682
Hush test clone warnings
...
warning: You appear to have cloned an empty repository.
2011-09-27 13:49:59 -05:00
Scott Chacon
5a7659e1c3
fix tests breaking due to whitespace issues
2011-07-19 12:55:19 -07:00
rick
e0494a6321
fix tests
2011-03-10 11:06:18 -08:00
rick
491eee7ebd
each test file that clones a repo gets its own repo path
2010-12-21 10:37:04 -08:00
rick
2c8be3d95b
add tests for creating/updating wikis, fix page name bug along the way
2010-12-09 16:11:12 -08:00
rick
074b2119fa
use a temp GIT_INDEX_FILE when working with the real git index (during reverts)
2010-12-08 15:17:18 -08:00
rick
25a56725f9
add ability to revert wiki pages
2010-12-08 14:57:29 -08:00
Tom Preston-Werner
dddb73672a
Minor readme typo and various whitespace fixups.
2010-08-30 16:38:01 -07:00
Tom Preston-Werner
94f05b0796
Update working dir (if present) when edited via the API. Closes #6 .
2010-08-30 16:37:59 -07:00
Tom Preston-Werner
9d743ba341
implement Wiki#write_page
2010-04-13 14:54:40 -04:00
Tom Preston-Werner
3ff115048d
start work on formatted_page
2010-04-08 16:20:05 -07:00
Tom Preston-Werner
fcd821cf02
comments
2010-04-07 13:38:32 -07:00
Tom Preston-Werner
6c4e343b0c
make example test wiki a git repo and test it
2010-04-07 13:36:48 -07:00
Tom Preston-Werner
c1abbec2f1
initial library setup
2010-04-07 00:41:50 -07:00