Nuevo plugin Additionals 2.0.20
This commit is contained in:
parent
a2a901b71b
commit
93e1e28683
354 changed files with 40514 additions and 0 deletions
17
plugins/additionals/app/views/wiki/_calendar_macros.html.slim
Executable file
17
plugins/additionals/app/views/wiki/_calendar_macros.html.slim
Executable file
|
@ -0,0 +1,17 @@
|
|||
.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});
|
16
plugins/additionals/app/views/wiki/_cryptocompare.html.slim
Executable file
16
plugins/additionals/app/views/wiki/_cryptocompare.html.slim
Executable file
|
@ -0,0 +1,16 @@
|
|||
.cryptocompare
|
||||
javascript:
|
||||
var scripts = document.getElementsByTagName("script");
|
||||
var embedder = scripts[scripts.length - 1];
|
||||
(function() {
|
||||
var appName = encodeURIComponent(window.location.hostname);
|
||||
if (appName == "") {
|
||||
appName = "local";
|
||||
}
|
||||
var s = document.createElement("script");
|
||||
s.type = "text/javascript";
|
||||
s.async = true;
|
||||
var theUrl = "#{raw url}";
|
||||
s.src = theUrl + (theUrl.indexOf("?") >= 0 ? "&" : "?") + "app=" + appName;
|
||||
embedder.parentNode.appendChild(s);
|
||||
})();
|
5
plugins/additionals/app/views/wiki/_global_sidebar.html.slim
Executable file
5
plugins/additionals/app/views/wiki/_global_sidebar.html.slim
Executable file
|
@ -0,0 +1,5 @@
|
|||
- sidebar = Additionals.settings[:global_sidebar]
|
||||
- if sidebar.present?
|
||||
.sidebar-additionals
|
||||
= textilizable(sidebar)
|
||||
br
|
15
plugins/additionals/app/views/wiki/_project_macros.html.slim
Executable file
15
plugins/additionals/app/views/wiki/_project_macros.html.slim
Executable file
|
@ -0,0 +1,15 @@
|
|||
.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))
|
4
plugins/additionals/app/views/wiki/_show_additionals.html.slim
Executable file
4
plugins/additionals/app/views/wiki/_show_additionals.html.slim
Executable file
|
@ -0,0 +1,4 @@
|
|||
- 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
|
6
plugins/additionals/app/views/wiki/_tradingview.html.slim
Executable file
6
plugins/additionals/app/views/wiki/_tradingview.html.slim
Executable file
|
@ -0,0 +1,6 @@
|
|||
/! TradingView Widget BEGIN
|
||||
= javascript_include_tag 'https://s3.tradingview.com/tv.js'
|
||||
div[style="display: inline-block;"]
|
||||
javascript:
|
||||
new TradingView.widget(#{raw options.to_json});
|
||||
/! TradingView Widget END
|
23
plugins/additionals/app/views/wiki/_user_macros.html.slim
Executable file
23
plugins/additionals/app/views/wiki/_user_macros.html.slim
Executable file
|
@ -0,0 +1,23 @@
|
|||
.users.box
|
||||
- if list_title
|
||||
h3 = list_title
|
||||
- users.each do |user|
|
||||
.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)
|
||||
- if !user_roles.nil? && user_roles[user.id]
|
||||
.user.line
|
||||
= l(:field_role)
|
||||
' :
|
||||
= user_roles[user.id].join(', ').html_safe
|
||||
.user.line
|
||||
= l(:field_login)
|
||||
' :
|
||||
= link_to user.login, '/users/' + user.id.to_s
|
||||
- unless user.pref.hide_mail
|
||||
.user.line
|
||||
= l(:field_mail)
|
||||
' :
|
||||
= mail_to(user.mail, nil, encode: 'javascript')
|
Loading…
Add table
Add a link
Reference in a new issue