Tom Hughes
f07819d81a
Rework application configuration
...
Use a preinitializer to load the settings from application.yml so
that they are available as early as possible. All settings can also
be overridden using environment variables.
The ad-hoc settins in environment.rb are then moved to this new
system so we have one consistent location for settings.
2010-08-04 22:06:05 +01:00
Tom Hughes
f973bee52b
Make database offline work in production
2010-06-15 10:40:47 +01:00
Tom Hughes
5a54630b57
Add support for suspended and confirmed users
...
Replace the existing "active" and "visible" with an enumerated status
that allows for extra cases. Currently we have "suspended" for users
who hve triggered the spam detector and "confirmed" for users that have
triggered the detector but have been confirmed as vald by an admin.
2010-05-06 17:18:34 +01:00
Tom Hughes
d907b40eab
Improve page title for diary entries. Closes #2702 .
2010-02-08 18:15:51 +00:00
Tom Hughes
8e9a542482
Use the right variable this time...
2010-01-27 09:07:25 +00:00
Tom Hughes
2330a1a378
Specify the user when redirecting back to a diary entry after
...
hiding a comment.
2010-01-27 09:02:27 +00:00
Tom Hughes
314b734aa5
Introduce some caching for diary views.
2010-01-09 16:43:38 +00:00
Tom Hughes
57a05a40fc
Make diary comment creation work again.
2009-11-15 11:00:54 +00:00
Tom Hughes
634565c5d3
Add support for logical deletion of diary entries and comments.
2009-11-14 15:57:08 +00:00
Tom Hughes
43d9b32012
Remove explicit specification of I18n.local as the locale in resource
...
lookups - it's the default anyway.
2009-08-18 20:21:25 +00:00
Štefan Baebler
803acea032
fixing interpolation error with per language rss feeds that was introduced in [16903]
2009-08-18 19:36:58 +00:00
Ævar Arnfjörð Bjarmason
127241cdff
Make the diary RSS feed translatable
2009-08-07 01:03:42 +00:00
Tom Hughes
f5e14bcc48
Don't send a noification email if somebody comments on their own diary
...
entry. Fixes #2053 .
2009-07-11 13:24:57 +00:00
Ævar Arnfjörð Bjarmason
be57524849
Add 'diary_entry.no_such_entry.title' for diary entries that don't exist
2009-06-23 00:17:20 +00:00
Thomas Wood
2fabbed189
Autoselect new diary entry language to that of last posted entry rather than user's default language.
...
(Closes #1967 )
2009-06-20 18:27:03 +00:00
Tom Hughes
5475a9ec35
Revert r15900 for now.
2009-06-14 09:53:42 +00:00
Štefan Baebler
2b290f4994
cleanup
2009-06-14 07:27:24 +00:00
Štefan Baebler
61123eaeb4
Added localized language names with plugin from http://github.com/grosser/i18n_data/tree/master ( fixes #1946 )
...
Diary entries in same language linked (lists and rss)
2009-06-14 07:25:08 +00:00
Thomas Wood
5123163e92
Remove superfluous "language" from diary strings - it sounds weird (other option would be to change to "the {{language}} language")
2009-06-12 18:48:36 +00:00
Štefan Baebler
98b9ce8f97
diary entries (list and rss) for a given language.
...
TODO: language rss link, linking the localized lists
2009-06-12 06:34:18 +00:00
Tom Hughes
2e2f212472
Rename views to rails 2 style names.
2009-06-09 20:50:14 +00:00
Ævar Arnfjörð Bjarmason
db51d7f3dd
Added & cleaned up messages relating to a given user not existing
...
The following pages now have a <title> that can be set in localizations:
* /user/USER_DOES_NOT_EXIST
* /user/USER_DOES_NOT_EXIST/diary
* /user/USER_DOES_NOT_EXIST/traces
* /message/*/ID_DOES_NOT_EXIST
In addition I've cleaned up the i18n message keys of all the
''no_such_user.rhtml'' pages involved. They now all use
title/heading/body for the <title>, <h2> and <p> respectively. And the
message key {{user}} instead of {{name}}.
2009-06-06 13:15:53 +00:00
Tom Hughes
cd48e2d1f7
Remove left over code from original diary language implementation that
...
was stopping editing from being able to change the language.
2009-06-02 08:56:49 +00:00
Tom Hughes
1be7bb8a04
Make a few more strings translatable in the diary entry controller
...
and tidy up the translations for some of the partials.
2009-06-02 08:13:41 +00:00
Shaun McDonald
f3bcdd85d7
Some more i18n html titles
2009-05-31 16:51:20 +00:00
Tom Hughes
0e96027a20
Sort out storage and use of user preferred languages.
2009-05-31 14:55:45 +00:00
Tom Hughes
5b3b288fc2
Add a list of languages and fix a few issues with the schema. Also get
...
language selection for diary entries working.
2009-05-30 16:37:21 +00:00
Shaun McDonald
3a599519eb
Some more of the user account translations. Custom generate method for languages, that doesn't appear to work. Setting user language on create. Start translations in controllers. Diary entries can now be saved.
2009-05-30 14:04:42 +00:00
Shaun McDonald
b377927a64
Diary entries pretty much i18n'd. Additional test that checks there are no missing translation strings, need more like it.
2009-05-27 17:19:59 +00:00
Shaun McDonald
53b4d645d8
First stage of i18n. Some migrations and extra plugins.
2009-05-22 18:36:17 +00:00
Tom Hughes
5449cf4adc
Merge 14394:14533 from trunk.
2009-04-16 21:11:12 +00:00
Tom Hughes
09fdee5493
Add a "database readonly" state that allows all writes to the database
...
to be suppressed.
2009-04-14 14:27:30 +00:00
Shaun McDonald
bdd5c317a7
Adding some more diary entry tests. Making the RSS feed links more portable, by using the SERVER_URL constant. Fixing the validation for the length of the language of diary entries until the i18n branch is integrated.
2008-11-13 17:20:40 +00:00
Shaun McDonald
797cbaab1e
Covering the case of an entry not being found. More diary entry tests.
2008-11-12 18:48:58 +00:00
Andy Allan
f2093eb4c4
boolean correctness
2008-11-10 11:47:20 +00:00
Shaun McDonald
bf29550db8
Resyncing from head 10895:11795
2008-11-08 11:52:58 +00:00
Andy Allan
7058d836f7
use boolean flags when using boolean columns
2008-11-07 13:24:18 +00:00
Tom Hughes
6a5749c55c
Hide diary entries and comments made by deleted users.
2008-10-12 18:38:54 +00:00
Tom Hughes
34189cf761
Add basic support for logically deleting a user.
2008-08-24 16:53:42 +00:00
Tom Hughes
791062569d
Tidy up diary code a bit.
2008-08-24 15:12:20 +00:00
Richard Fairhurst
3b6d2c5336
edit diary entries
2008-08-21 21:40:23 +00:00
Tom Hughes
d69e9533d1
Fix thinko.
2008-07-19 23:02:04 +00:00
Tom Hughes
c933a4222c
Improve error handling.
2008-07-19 22:59:59 +00:00
Tom Hughes
2cf15b549e
Add support for putting the site in an offline mode where it operates
...
without a database but with most features disabled.
2008-06-22 12:10:32 +00:00
Tom Hughes
a1378a6bd4
Report a friendly error for attempts to reference a user that does
...
not exist. Closes #805 .
2008-04-27 12:21:32 +00:00
Tom Hughes
5fbc8ad3f4
Send email notifications when people comment on diary entries. Closes #655 .
2008-02-04 00:15:28 +00:00
Tom Hughes
691aab02fc
Add pagination to diary entry lists.
2008-01-18 18:20:15 +00:00
Tom Hughes
8181cb4bf7
Add support for commenting on, and replying to, diary entries.
2008-01-17 23:12:25 +00:00
Tom Hughes
459e16861a
Set MIME type correctly for diary RSS feeds.
2008-01-16 10:28:57 +00:00
Tom Hughes
c3bd1f113b
Tidy up message sensitisation a bit more, and add sensitisation of
...
information in the diary RSS feeds.
2008-01-16 10:02:42 +00:00