Actualizar plugin Additionals a 3.0.0
This commit is contained in:
parent
3d976f1b3b
commit
a26f5567af
399 changed files with 70374 additions and 4093 deletions
|
@ -0,0 +1,4 @@
|
|||
- if Additionals.setting(:global_sidebar).present?
|
||||
.sidebar-additionals
|
||||
= textilizable Additionals.setting(:global_sidebar)
|
||||
br
|
|
@ -1,17 +0,0 @@
|
|||
.month-calendar id="month-calendar-#{id}"
|
||||
javascript:
|
||||
$("#month-calendar-#{id}").datepicker({
|
||||
language: "#{locale}",
|
||||
calendarWeeks: #{options[:show_weeks]},
|
||||
todayHighlight: true,
|
||||
multidate: true,
|
||||
disableTouchKeyboard: true,
|
||||
defaultViewDate: {
|
||||
year: #{options[:year]},
|
||||
month: #{options[:month]},
|
||||
day: 1
|
||||
}
|
||||
});
|
||||
- unless selected.empty?
|
||||
javascript:
|
||||
$('#month-calendar-#{id}').datepicker('setDates', #{selected});
|
|
@ -1,5 +0,0 @@
|
|||
- sidebar = Additionals.settings[:global_sidebar]
|
||||
- if sidebar.present?
|
||||
.sidebar-additionals
|
||||
= textilizable(sidebar)
|
||||
br
|
|
@ -1,15 +1,20 @@
|
|||
.additionals-projects.box
|
||||
- if list_title
|
||||
h3 = list_title
|
||||
ul
|
||||
- @projects.each do |project|
|
||||
li.project class="#{cycle('odd', 'even')}"
|
||||
span[style='font-weight: bold;']
|
||||
= link_to_project(project)
|
||||
- if project.homepage?
|
||||
' :
|
||||
= link_to(project.homepage, project.homepage, @html_options)
|
||||
- if with_create_issue && User.current.allowed_to?(:add_issues, project)
|
||||
= link_to('',
|
||||
new_project_issue_path(project_id: project),
|
||||
class: 'icon icon-add', title: l(:label_issue_new))
|
||||
|
||||
table.list.projects
|
||||
- project_tree(@projects, init_level: false) do |project, level|
|
||||
tr id="project-#{project.id}" class="#{project_list_css_classes project, level}"
|
||||
td.name
|
||||
span[style='font-weight: bold;']
|
||||
- if Redmine::Plugin.installed? 'redmine_reporting'
|
||||
= project_name_with_icon project
|
||||
- else
|
||||
= link_to_project project
|
||||
- if project.homepage?
|
||||
' :
|
||||
= link_to(project.homepage, project.homepage, @html_options)
|
||||
- if with_create_issue && User.current.allowed_to?(:add_issues, project)
|
||||
= link_to '',
|
||||
new_project_issue_path(project_id: project),
|
||||
class: 'icon icon-add', title: l(:label_issue_new)
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
- content_for :header_tags do
|
||||
= stylesheet_link_tag 'bootstrap-datepicker3.standalone.min', plugin: 'additionals'
|
||||
= javascript_include_tag('bootstrap-datepicker.min', plugin: 'additionals')
|
||||
= bootstrap_datepicker_locale
|
|
@ -2,22 +2,22 @@
|
|||
- if list_title
|
||||
h3 = list_title
|
||||
- users.each do |user|
|
||||
.user.box class="#{cycle('odd', 'even')}"
|
||||
.user.box class="#{cycle 'odd', 'even'}"
|
||||
div[style="float: left; display: block; margin-right: 5px;"]
|
||||
= avatar(user, size: 50)
|
||||
.user.line[style="font-weight: bold;"]
|
||||
= link_to_user(user)
|
||||
= link_to_user user
|
||||
- if !user_roles.nil? && user_roles[user.id]
|
||||
.user.line
|
||||
= l(:field_role)
|
||||
= l :field_role
|
||||
' :
|
||||
= user_roles[user.id].join(', ').html_safe
|
||||
.user.line
|
||||
= l(:field_login)
|
||||
= l :field_login
|
||||
' :
|
||||
= link_to user.login, '/users/' + user.id.to_s
|
||||
= link_to user.login, "/users/#{user.id}"
|
||||
- unless user.pref.hide_mail
|
||||
.user.line
|
||||
= l(:field_mail)
|
||||
= l :field_mail
|
||||
' :
|
||||
= mail_to(user.mail, nil, encode: 'javascript')
|
||||
= mail_to user.mail, nil, encode: 'javascript'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue