Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Nov 16, 2024
2 parents 51b10c4 + a9dcbf7 commit 8f22041
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 19 deletions.
8 changes: 4 additions & 4 deletions app/views/wiki_extensions/_html_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<% end -%>


<%= javascript_include_tag(baseurl + "/plugin_assets/redmine_wiki_extensions/javascripts/jquery.tablesorter.js") %>
<%= stylesheet_link_tag(baseurl + "/plugin_assets/redmine_wiki_extensions/stylesheets/wiki_extensions.css") %>
<%= stylesheet_link_tag(baseurl + "/plugin_assets/redmine_wiki_extensions/stylesheets/wiki_extensions_print.css", :media => 'print') %>
<%= javascript_include_tag(baseurl + "/plugin_assets/redmine_wiki_extensions/javascripts/wiki_extensions.js") %>
<%= javascript_include_tag("jquery.tablesorter.js", plugin: "redmine_wiki_extensions") %>
<%= stylesheet_link_tag("wiki_extensions.css", plugin: "redmine_wiki_extensions") %>
<%= stylesheet_link_tag("wiki_extensions_print.css", plugin: "redmine_wiki_extensions", media: 'print') %>
<%= javascript_include_tag("wiki_extensions.js", plugin: "redmine_wiki_extensions") %>
<% end %>
2 changes: 1 addition & 1 deletion assets/javascripts/wiki_smiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jsTooltip.prototype = {
this.a.className = 'smiles';
this.img = document.createElement('img');
this.img.title = 'Smiles';
this.img.src = redmine_base_url + '/plugin_assets/redmine_wiki_extensions/images/main_smile.png?dummy_param';
this.img.src = 'plugin_assets/redmine_wiki_extensions/images/main_smile.png?dummy_param';
this.img.id = 'smiles_img';
this.img.tabIndex = 200;
this.a.appendChild(this.img);
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
author_url 'http://twitter.com/haru_iida'
description 'This is a Wiki Extensions plugin for Redmine'
url 'http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en'
version '1.0.0'
version '1.0.1'
requires_redmine :version_or_higher => '6.0.0'

project_module :wiki_extensions do
Expand Down
3 changes: 1 addition & 2 deletions lib/wiki_extensions_formatter_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ module WikiExtensionsFormatterPatch
private

def inline_smiles(text)
baseurl = Redmine::Utils.relative_url_root
src = baseurl + "/plugin_assets/redmine_wiki_extensions/images/"
src = "plugin_assets/redmine_wiki_extensions/images/"

@emoticons = WikiExtensionsEmoticons::Emoticons.new
@emoticons.emoticons.each{|emoticon|
Expand Down
3 changes: 1 addition & 2 deletions lib/wiki_extensions_helper_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def heads_for_wiki_formatter
super
return if ie6_or_ie7?
unless @heads_for_wiki_smiles_included
baseurl = Redmine::Utils.relative_url_root
imageurl = baseurl + "/plugin_assets/redmine_wiki_extensions/images"

content_for :header_tags do
# o = stylesheet_link_tag("wiki_smiles.css", :plugin => "redmine_wiki_extensions")
# o << javascript_include_tag("wiki_smiles.js", :plugin => "redmine_wiki_extensions")
Expand Down
16 changes: 7 additions & 9 deletions lib/wiki_extensions_projects_helper_patch.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Wiki Extensions plugin for Redmine
# Copyright (C) 2009-2021 Haruyuki Iida
# Copyright (C) 2009- Haruyuki Iida
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -18,15 +18,13 @@
require_dependency 'projects_helper'

module WikiExtensionsProjectsHelperPatch
def self.apply
ProjectsController.send :helper, WikiExtensionsProjectsHelperPatch
end

def project_settings_tabs
tabs = super
action = {:name => 'wiki_extensions',
:controller => 'wiki_extensions_settings',
:action => :show,
:partial => 'wiki_extensions_settings/show',
action = {:name => 'wiki_extensions',
:controller => 'wiki_extensions_settings',
:action => :show,
:partial => 'wiki_extensions_settings/show',
:label => :wiki_extensions}

tabs << action if User.current.allowed_to?(action, @project)
Expand All @@ -35,4 +33,4 @@ def project_settings_tabs
end
end


ProjectsHelper.prepend(WikiExtensionsProjectsHelperPatch)

0 comments on commit 8f22041

Please sign in to comment.