Patch #26333 ยป 0001-Replace-tabs-with-spaces.patch
app/models/mailer.rb | ||
---|---|---|
354 | 354 |
:subject => "[#{Setting.app_title}] #{l(:mail_subject_security_notification)}" |
355 | 355 |
end |
356 | 356 | |
357 |
# Notifies admins about settings changes
|
|
357 |
# Notifies admins about settings changes
|
|
358 | 358 |
def self.security_settings_updated(changes) |
359 | 359 |
return unless changes.present? |
360 | 360 |
app/models/member.rb | ||
---|---|---|
31 | 31 | |
32 | 32 |
scope :active, lambda { joins(:principal).where(:users => {:status => Principal::STATUS_ACTIVE})} |
33 | 33 | |
34 |
# Sort by first role and principal
|
|
34 |
# Sort by first role and principal
|
|
35 | 35 |
scope :sorted, lambda { |
36 | 36 |
includes(:member_roles, :roles, :principal). |
37 | 37 |
reorder("#{Role.table_name}.position"). |
app/models/project.rb | ||
---|---|---|
527 | 527 |
member |
528 | 528 |
end |
529 | 529 | |
530 |
# Default role that is given to non-admin users that
|
|
531 |
# create a project
|
|
530 |
# Default role that is given to non-admin users that
|
|
531 |
# create a project
|
|
532 | 532 |
def self.default_member_role |
533 | 533 |
Role.givable.find_by_id(Setting.new_project_user_role_id.to_i) || Role.givable.first |
534 | 534 |
end |
app/models/setting.rb | ||
---|---|---|
118 | 118 |
setting.value |
119 | 119 |
end |
120 | 120 | |
121 |
# Updates multiple settings from params and sends a security notification if needed
|
|
121 |
# Updates multiple settings from params and sends a security notification if needed
|
|
122 | 122 |
def self.set_all_from_params(settings) |
123 | 123 |
return nil unless settings.is_a?(Hash) |
124 | 124 |
settings = settings.dup.symbolize_keys |
public/stylesheets/responsive.css | ||
---|---|---|
173 | 173 |
-webkit-transform: scale(1,.8); |
174 | 174 |
-ms-transform: scale(1,.8); |
175 | 175 |
transform: scale(1,.8); |
176 |
padding-top:8px;
|
|
176 |
padding-top:8px;
|
|
177 | 177 |
} |
178 | 178 | |
179 | 179 |
#project-jump .drdn-content { |
180 |
position:absolute;
|
|
180 |
position:absolute;
|
|
181 | 181 |
left:0px; |
182 | 182 |
top:64px; |
183 | 183 |
width:100%; |
... | ... | |
186 | 186 |
} |
187 | 187 |
#project-jump .drdn-content .autocomplete { |
188 | 188 |
height:40px; |
189 |
font-size:20px;
|
|
189 |
font-size:20px;
|
|
190 | 190 |
} |
191 | 191 |
#project-jump .drdn-content a { |
192 | 192 |
padding:8px; |