mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +00:00
24eabf89e6
Changed login field text Changed database configuration connection pool size to be configured via dotenv Use a single BBcode parser library Added better translations coverage Code formatting Increases maximum article text limit Added database cleaner with the deletion strategy during testing
27 lines
No EOL
520 B
Ruby
27 lines
No EOL
520 B
Ruby
BBCoder.configure do
|
|
tag :b, :as => :strong
|
|
|
|
tag :sub, :singular => true do
|
|
%(<sub>#{singular? ? meta : content}</sub>)
|
|
end
|
|
|
|
tag :sup, :singular => true do
|
|
%(<sup>#{singular? ? meta : content}</sup>)
|
|
end
|
|
|
|
tag :ul
|
|
tag :ol
|
|
tag :li, :parents => [:ol, :ul]
|
|
|
|
tag :size do
|
|
%(<span style="font-size: #{meta}px;">#{content}</span>)
|
|
end
|
|
|
|
tag :url do
|
|
if meta.nil? || meta.empty?
|
|
%(<a href="#{content}">#{content}</a>)
|
|
else
|
|
%(<a href="#{meta}">#{content}</a>)
|
|
end
|
|
end
|
|
end |