gem 'paperclip', '~> 2.0'
gem 'deadlock_retry', '>= 1.2.0'
gem 'i18n-js', '>= 3.0.0.rc2'
+ gem 'rack-cors'
+gem 'jsonify-rails'
# We need ruby-openid 2.2.0 or later for ruby 1.9 support
gem 'ruby-openid', '>= 2.2.0'
treetop (~> 1.4.8)
memcached (1.4.6)
mime-types (1.19)
- minitest (4.1.0)
- multi_json (1.3.6)
- minitest (4.2.0)
++ minitest (4.3.0)
+ multi_json (1.3.7)
multipart-post (1.1.5)
nokogiri (1.5.5)
oauth (0.4.7)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
- rake (0.9.2.2)
- rake (10.0.0)
++ rake (10.0.2)
rdoc (3.12)
json (~> 1.4)
- redcarpet (2.2.1)
+ redcarpet (2.2.2)
rinku (1.7.2)
- ruby-openid (2.2.1)
+ ruby-openid (2.2.2)
sanitize (2.0.3)
nokogiri (>= 1.4.4, < 1.6)
- sass (3.2.1)
+ sass (3.2.3)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
padding: 5px;
}
+#permalink a.disabled {
+ color: #ccc;
+ cursor: default;
+ text-decoration: none;
+}
+
+ .site-index #map .SimpleLayerSwitcher,
+ .site-index #map .olControlSimplePanZoom,
+ .site-export #map .SimpleLayerSwitcher,
+ .site-export #map .olControlSimplePanZoom {
+ top: 40px !important;
+ }
+
+ .site-index #map .olControlScaleLine,
+ .site-export #map .olControlScaleLine {
+ left: 10px !important;
+ }
+
/* Rules for edit menu */
.menuicon {
white-space: nowrap;
}
+td.browse_comments {
+ padding: 0px;
+}
+
+td.browse_comments table {
+ border-collapse: collapse;
+}
+
+td.browse_comments table td {
+ padding-bottom: 10px;
+}
+
+td.browse_comments table td span.by {
+ font-size: small;
+ color: #999999;
+}
+
#browse_map {
+ float: right;
width: 250px;
+ text-align: right;
+ margin-left: 10px;
}
#browse_map #small_map {
end
end
+ def dir
+ if dir = params[:dir]
+ dir == "rtl" ? "rtl" : "ltr"
+ else
+ I18n.t("html.dir")
+ end
+ end
++
+ def friendly_date(date)
+ content_tag(:span, time_ago_in_words(date), :title => l(date, :format => :friendly))
+ end
+
+ def note_author(object, link_options = {})
+ if object.author.nil?
+ h(object.author_name)
+ else
+ link_to h(object.author_name), link_options.merge({:controller => "user", :action => "view", :display_name => object.author_name})
+ end
+ end
end