public
Fork of trevorturk/el-dorado
Description: Localized version of El Dorado using Gibberish. Dutch language included.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/jxl/el-dorado.git
Search Repo:
Display static message if left blank in settings.
jxl (author)
Sun May 04 10:14:18 -0700 2008
commit  63604d6952a6f02eb7aff2effbc3f8bf48ec0659
tree    8cb4c8024f72f75bf51c0dff9920af02cdf06e38
parent  4a7276f25b4aeee1df497b9c6b397ed86a122e32
...
27
28
29
30
 
31
32
33
...
27
28
29
 
30
31
32
33
0
@@ -27,7 +27,7 @@
0
   TITLE = 'El Dorado'
0
   TAGLINE = 'A full-stack community web application written in Ruby/Rails'
0
   FOOTER = '<p style="text-align:right;margin:0;">Powered by <a href="http://almosteffortless.com/eldorado/">El Dorado</a> | <a href="http://almosteffortless.com">&aelig;</a></p>'
0
- LOGIN_MESSAGE = 'This is a private site.'
0
+ LOGIN_MESSAGE = ''
0
   
0
   def theme
0
     read_attribute(:theme) # not sure why this is needed, but tests are failing without it
...
5
6
7
8
 
 
 
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
13
14
15
0
@@ -5,7 +5,11 @@
0
       <%= 'Last visit'[:last_visit_was] %> <%= time_ago_or_time_stamp(session[:online_at]) %>
0
     <% else %>
0
       <% if @settings.private %>
0
- <%= @settings.login_message %>
0
+ <% if @settings.login_message.empty? %>
0
+ <%= 'This is a private site.'[:this_is_a_private_site] %>
0
+ <% else %>
0
+ <%= @settings.login_message %>
0
+ <% end %>
0
       <% else %>
0
         <%= "You're not logged in."[:not_logged_in] %>
0
       <% end %>

Comments

    No one has commented yet.