##// END OF EJS Templates
[#20288] Update styles to match CodeRay 1.1.0 (preserving changes of r10132)....
[#20288] Update styles to match CodeRay 1.1.0 (preserving changes of r10132). This commit updates the CSS styles to match with CodeRay 1.1.0, while it preserves the custom changes applied in r10132. The CSS styles were still based on CodeRay 1.0.6 (included since Redmine 1.4.0) with the custom changes from r10132 (included since Redmine 2.1.0). Redmine 2.3.2 till 2.3.4 came with CodeRay 1.0.9, an upgrade that didn't needed changes in the CSS styles. Starting with 2.4.0 Redmine comes with CodeRay 1.1.0, a minor upgrade that came with new/changed token_kinds and lots of changes in the alpha stylesheet, that in turn is used as a base for Redmine's own CodeRay CSS styles. As such, this upgrade needed CSS stylesheet changes like done before in r7618 and r7623 (for 1.0.0 upgrade) and r9389 (for 1.0.6 upgrade). But these changes, plus an update of the Redmine core documentation that is shipped along the core (wiki_syntax_detailed_[markdown|textile].html), aren't integrated up untill today. Contributed by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@14488 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12834:9fdd0862f74c
r14106:6fbb56e55735
Show More
index.api.rsb
43 lines | 1.3 KiB | text/plain | TextLexer
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.array :custom_fields do
@custom_fields.each do |field|
api.custom_field do
api.id field.id
api.name field.name
api.customized_type field.class.customized_class.name.underscore if field.class.customized_class
api.field_format field.field_format
api.regexp field.regexp
Jean-Philippe Lang
Removed default values on custom field min and max length....
r12130 api.min_length field.min_length
api.max_length field.max_length
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.is_required field.is_required?
api.is_filter field.is_filter?
api.searchable field.searchable
api.multiple field.multiple?
api.default_value field.default_value
api.visible field.visible?
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 values = field.possible_values_options
if values.present?
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.array :possible_values do
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 values.each do |label, value|
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.possible_value do
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 api.value value || label
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 end
end
end
end
if field.is_a?(IssueCustomField)
Jean-Philippe Lang
Missing type=array attributes in custom fields API (#16739)....
r12834 api.array :trackers do
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 field.trackers.each do |tracker|
api.tracker :id => tracker.id, :name => tracker.name
end
end
Jean-Philippe Lang
Missing type=array attributes in custom fields API (#16739)....
r12834 api.array :roles do
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 field.roles.each do |role|
api.role :id => role.id, :name => role.name
end
end
end
end
end
end