Fixing coding standards
This commit is contained in:
parent
748e0fdcf4
commit
f33d58f4bb
@ -4,6 +4,7 @@ module Additionals
|
||||
Redmine::WikiFormatting::Macros.register do
|
||||
desc <<-DESCRIPTION
|
||||
Display calendar (only works on wiki pages)
|
||||
|
||||
Examples:
|
||||
|
||||
{{calendar}} show calendar for current date
|
||||
@ -11,7 +12,6 @@ module Additionals
|
||||
{{calendar(show_weeks=true)}} show calendar with week numbers
|
||||
{{calendar(select=2015-07-12 2015-07-31, show_weeks=true)}} preselect dates and show week numbers
|
||||
{{calendar(select=2016-03-13:2016-03-27)}} preselect dates between 2016/3/13 and 2016/3/27
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
macro :calendar do |_obj, args|
|
||||
|
@ -8,6 +8,7 @@ module Additionals
|
||||
{{cryptocompare(options)}}
|
||||
see https://additionals.readthedocs.io/en/latest/macros/#cryptocompare
|
||||
DESCRIPTION
|
||||
|
||||
macro :cryptocompare do |_obj, args|
|
||||
raise 'The correct usage is {{cryptocompare(options)}}' if args.empty?
|
||||
_args, options = extract_macro_options(args, :fsym, :fsyms, :tsym, :tsyms, :period, :type)
|
||||
|
@ -3,7 +3,9 @@ module Additionals
|
||||
module WikiMacros
|
||||
Redmine::WikiFormatting::Macros.register do
|
||||
desc <<-DESCRIPTION
|
||||
Display current dates. Examples:
|
||||
Display current dates.
|
||||
|
||||
Examples:
|
||||
|
||||
{{current_year}} current year
|
||||
{{current_month}} current month
|
||||
|
@ -13,7 +13,6 @@ module Additionals
|
||||
|
||||
{{group_users(Team)}}
|
||||
...List all users in user group "Team" (with the current user permission)
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
macro :group_users do |_obj, args|
|
||||
|
@ -4,6 +4,7 @@ module Additionals
|
||||
Redmine::WikiFormatting::Macros.register do
|
||||
desc <<-DESCRIPTION
|
||||
Create a link to issue with the subject of this issue.
|
||||
|
||||
Syntax:
|
||||
|
||||
{{issue(URL [, format=USER_FORMAT, id=ID, note_id=NOTE_ID)}}
|
||||
|
@ -26,7 +26,6 @@ module Additionals
|
||||
{{members(the-identifier, title=My user list)}}
|
||||
...A box showing all members for the project with the identifier of 'the-identifier' and with
|
||||
box title "My user list"
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
macro :members do |_obj, args|
|
||||
|
@ -19,7 +19,6 @@ module Additionals
|
||||
|
||||
{{projects(with_create_issue=true)}}
|
||||
...List all project with link to create new issue, which I am member of
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
macro :projects do |_obj, args|
|
||||
|
@ -14,7 +14,6 @@ module Additionals
|
||||
|
||||
{{recently_updated(15)}}
|
||||
...List last updated pages of the last 15 days
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
macro :recently_updated do |obj, args|
|
||||
|
@ -6,6 +6,7 @@ module Additionals
|
||||
Creates link to reddit.
|
||||
{{reddit(name)}}
|
||||
DESCRIPTION
|
||||
|
||||
macro :reddit do |_obj, args|
|
||||
raise 'The correct usage is {{reddit(<name>)}}' if args.empty?
|
||||
name = args[0].strip
|
||||
|
@ -8,6 +8,7 @@ module Additionals
|
||||
{{tradingview(options)}}
|
||||
see https://additionals.readthedocs.io/en/latest/macros/#tradingview
|
||||
DESCRIPTION
|
||||
|
||||
macro :tradingview do |_obj, args|
|
||||
raise 'The correct usage is {{tradingview(options)}}' if args.empty?
|
||||
_args, options = extract_macro_options(args, :width, :height, :symbol, :interval, :timezone,
|
||||
|
@ -6,6 +6,7 @@ module Additionals
|
||||
Creates link to twitter account page or topic.
|
||||
{{twitter(name)}}
|
||||
DESCRIPTION
|
||||
|
||||
macro :twitter do |_obj, args|
|
||||
raise 'The correct usage is {{twitter(<name>)}}' if args.empty?
|
||||
name = args[0].strip
|
||||
|
Loading…
x
Reference in New Issue
Block a user