import redmine_cms 1.2.5

This commit is contained in:
Harald Welte 2023-11-28 18:37:34 +01:00
parent 1d839e9bc2
commit 12be99c43d
146 changed files with 1175 additions and 645 deletions

View File

@ -16,11 +16,12 @@ local Pipeline(rubyVer, license, db, redmine) = {
};
[
Pipeline("2.7.3", "pro", "mysql", "trunk"),
Pipeline("2.7.3", "pro", "pg", "trunk"),
Pipeline("2.4.1", "pro", "mysql", "4.1"),
Pipeline("3.1.0", "pro", "mysql", "trunk"),
Pipeline("3.1.0", "pro", "pg", "trunk"),
Pipeline("3.1.0", "pro", "mysql", "5.0"),
Pipeline("2.7.3", "pro", "mysql", "4.2"),
Pipeline("2.4.1", "pro", "mysql", "4.0"),
Pipeline("2.4.1", "pro", "mysql", "3.4"),
Pipeline("2.2.6", "pro", "mysql", "3.3"),
Pipeline("2.2.6", "pro", "pg", "3.3")
Pipeline("2.2.6", "pro", "mysql", "3.4"),
Pipeline("2.2.6", "pro", "pg", "3.0")
]

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
@ -121,6 +121,7 @@ class CmsSiteController < ApplicationController
def expire_cache
Rails.cache.clear
RedmineCms::PublicUrl.clear_cache
redirect_back_or_default home_url
end

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -3,7 +3,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -3,7 +3,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -3,7 +3,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -3,7 +3,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
@ -121,6 +121,10 @@ class CmsPage < ActiveRecord::Base
RedmineCms.allow_edit?(user)
end
def public?
visibility == 'public'
end
def active?
status_id == RedmineCms::STATUS_ACTIVE
end
@ -290,7 +294,7 @@ class CmsPage < ActiveRecord::Base
if path == '/' && RedmineCms.landing_page
CmsPage.find(RedmineCms.landing_page)
else
RedmineCms::Pages::Finder.find(path)
RedmineCms::PageFinder.find(path)
end
end

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
@ -26,7 +26,7 @@ class CmsPart < ActiveRecord::Base
acts_as_attachable_cms
acts_as_versionable_cms
acts_as_positioned scope: :page_id
Redmine::VERSION.to_s < '3.3' ? acts_as_list(scope: :page_id) : acts_as_positioned(scope: :page_id)
scope :active, lambda { where(:status_id => RedmineCms::STATUS_ACTIVE) }

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -3,7 +3,7 @@
<%= form_tag(signin_path) do %>
<%= back_url_hidden_field_tag %>
<table>
<% if Setting.self_registration? %>
<% if Setting.self_registration? %>
<tr>
<td align="right"></td>
<td align="left"><%= link_to l(:label_register), register_path %></td>
@ -17,7 +17,7 @@
<td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
<td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
</tr>
<% if Setting.openid? %>
<% if Object.const_defined?(:OpenID) && Setting.openid? %>
<tr>
<td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
<td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>

View File

@ -1,8 +1,10 @@
<div class="attachments">
<div class="contextual">
<%= link_to image_tag('edit.png'),
container_attachments_edit_path(container),
:title => l(:label_edit_attachments) if options[:editable] %>
<%= link_to(l(:label_edit_attachments),
object_attachments_edit_path(container.class.name.underscore.pluralize, container.id),
:title => l(:label_edit_attachments),
:class => 'icon-only icon-edit'
) if options[:editable] %>
</div>
<% for attachment in attachments %>
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>

View File

@ -40,7 +40,7 @@
<%= hidden_field_tag 'object_type', 'cms_page' %>
<div id="query_form_content" class="hide-when-print">
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
<legend class="icon icon-<%= @query.new_record? ? 'expended' : 'collapsed' %>" onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
<legend onclick="toggleFieldset(this);" class="icon icon-<%= @query.new_record? ? "expanded" : "collapsed" %>"><%= l(:label_filter_plural) %></legend>
<div style="<%= @query.new_record? ? "" : "display: none;" %>">
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
</div>

View File

@ -1,5 +1,7 @@
<%= render :partial => 'cms_pages/page' %>
<% cache_if @page.is_cached?, [@page.public? ? nil : User.current.id, @page] do %>
<%= render :partial => 'cms_pages/page' %>
<% @page.parts.active.order(:position).each do |page_part| %>
<%= content_for(page_part.name.to_sym, @page.render_part(page_part)) unless page_part.name.strip == 'content' %>
<% end %>
<% @page.parts.active.order(:position).each do |page_part| %>
<%= content_for(page_part.name.to_sym, @page.render_part(page_part)) unless page_part.name.strip == 'content' %>
<% end %>
<% end %>

View File

@ -14,7 +14,7 @@
<td class="name"><%= link_to h(page_part.description), edit_cms_part_path(page_part) %></td>
<td class="buttons">
<%= reorder_handle(page_part, url: cms_part_path(page_part), param: 'part') %>
<%= stocked_reorder_link(page_part, 'part', { url: cms_part_path(page_part), param: 'part'}, :get) %>
<%= cms_change_status_link('part', page_part) %>
<%= link_to l(:label_history), cms_object_history_path(page_part, :object_type => page_part.class.name.underscore), :class => 'icon icon-history' if page_part.version > 1 %>
<%= delete_link cms_part_path(page_part) if User.current.admin? %>
@ -26,4 +26,4 @@
<%= javascript_tag do %>
$(function() { $("table.page-parts tbody").positionedItems(); });
<% end %>
<% end %>
<% end %>

View File

@ -40,6 +40,12 @@
<%= text_field_tag 'settings[cache_expires_in]', RedmineCms.cache_expires_in, :size => 5 %> <%= l(:label_cms_minute_plural) %>
</p>
<p>
<label><%= l(:label_cms_use_public_urls) %></label>
<%= hidden_field_tag 'settings[use_public_urls]', 0 %>
<%= check_box_tag 'settings[use_public_urls]', 1, RedmineCms.use_public_urls?, :id => 'use_public_urls' %>
</p>
<p>
<label><%= l(:label_cms_default_layout) %></label>
<%= select_tag 'settings[default_layout]', options_for_select(cms_layouts_for_select, @settings["default_layout"]) %>

View File

@ -1 +0,0 @@
<%= render :file => 'app/views/projects/index.html.erb' %>

163
config/locales/de.yml Normal file
View File

@ -0,0 +1,163 @@
# English strings go here for Rails i18n
de:
label_cms: CMS
label_project_tab: "Registerkarte Projekt"
label_project_tab_caption: "Projektregisterkarte %{index}"
label_project_tab_page: "Seite"
label_cms_menu: Menü
label_cms_menu_new: Neues Menü
label_cms_menu_plural: Menüs
label_cms_menu_name: Name
label_cms_menu_caption: Bildunterschrift
label_cms_menu_type: Typ
label_cms_menu_path: Pfad
label_cms_menu_status: Status
label_cms_menu_parent: Elternmenü
label_cms_position: Position
label_cms_account_settings: Account Einstellungen
label_cms_page_plural: Seiten
label_cms_page: Seite
label_cms_page_new: Neue Seite
label_cms_page_summary: Zusammenfassung
label_cms_status: Status
label_cms_content: Inhalt
label_cms_filter: Filter
label_cms_page_parent: Elternseite
label_cms_use_localization: Lokalisierung
label_cms_home_page: Hauptseite
label_cms_landing_page: Zielseite
label_cms_landing_tab: Ziel Tab
label_cms_projects_page: Projektübersichtsseite
label_cms_my_page: Meine Seite
label_cms_is_cached: Liegt im Cache
label_cms_part_plural: Teile
label_cms_part: Teil
label_cms_part_new: Neuer Teil
label_cms_part_type: Typ
label_cms_is_global: Ist global
label_cms_refresh_cache: Cache aktualisieren
label_cms_redmine_layout: Redmine Layout
label_cms_seo: SEO
label_cms_keywords: Schlüsselwörter
label_cms_description: Beschreibung
label_cms_layout_content: Layout-Inhalt
label_cms_apply: Anwenden
label_cms_visibility: Sichtbarkeit
label_cms_show_activity_tab: Registerkarte Aktivität anzeigen
label_cms_show_overview_tab: Registerkarte Übersicht anzeigen
label_cms_redmine_top_menu: Standard-Hauptmenüelemente
label_cms_copyright: Copyright Info
project_module_cms: CMS
label_cms_custom_layout: Benutzerdefiniertes Layout
label_cms_cache_expires_in: Cache läuft ab in
label_cms_minute_plural: Minuten
label_cms_edit_permissions: Berechtigungen bearbeiten
label_cms_source_path: Quellpfad
label_cms_destination_path: Zielpfad
label_cms_redirect_plural: Weiterleitungen
label_cms_redirect: Weiterleitung
label_cms_redirect_new: Neu Weiterleitung
label_cms_variable_plural: Globale Variablen
label_cms_variable: Globale Variable
label_cms_variable_new: Neue globale Variablen
label_cms_variable_name: Name
label_cms_variable_value: Wert
label_cms_version_cannot_destroy_current: Aktuelle Version kann nicht gelöscht werden
label_cms_version_comment: Ändert Kommentar
field_layout: Layout
label_cms_layout_plural: Layouts
label_cms_layout: Layout
label_cms_slug: Slug
label_cms_name: Name
label_cms_title: Titel
label_cms_layout_new: Neues Layout
label_cms_content_type: Inhaltstyp
label_cms_no_layout: Layout nicht gefunden
label_cms_settings: CMS - Allgemeine Einstellungen
label_cms_field_plural: Felder
label_cms_field_value: Feldwert
label_cms_field: Seitenfeld
label_cms_add_field: Feld hinzufügen
label_cms_default_fields: Standardseitenfelder
label_cms_snippet_new: Neuer Schnipsel
label_cms_snippet_edit: Schnipsel bearbeiten
label_cms_snippet_plural: Schnipsel
label_cms_snippet: Schnipsel
label_cms_redmine_layout_plural: Redmine Aktionslayouts
label_cms_redmine_action: Redmine Aktion
label_cms_redmine_layout_new: Neues Redmine Aktionslayout
label_cms_redmine_layout_edit: Redmine Aktionslayouts bearbeiten
label_cms_status_locked: Gesperrt
label_cms_status_active: Aktiv
label_cms_asset_plural: Anlagen
label_cms_thumbnail: Miniaturansicht
label_cms_edit_assets: Anlagen bearbeiten
label_cms_default_layout: Standardlayout
label_cms_redmine_hook_plural: Redmineverankerungen
label_cms_layout_edit: Layout bearbeiten
label_cms_part_edit: Teil bearbeiten
label_cms_page_edit: Seite bearbeiten
label_cms_redirect_edit: Weiterleitung bearbeiten
label_cms_part_edit_plural: Teile bearbeiten
label_cms_preview: Vorschau
label_cms_sub_pages: Unterseite
label_cms_preview_page: Vorschauseite
label_cms_show_site: Zeige Seite
label_cms_jump_to_a_page: "Springe zur Seite ..."
label_cms_section: Sektion
label_cms_page_tags: Seiten Tags
label_cms_tags: Tags
label_cms_diff_with_current: Unterschiede zur aktuellen Version
label_cms_exports_new: CSM-Objekt exportieren
label_cms_exported_object: Exportiertes CMS-Objekt
label_cms_exports_attachment_content: Inhalt der Anhänge exportieren
button_import: Import
label_cms_imports_new: CMS-Objekt importieren
label_crm_import_file: Importierte Datei
label_cms_import_rewrite_existed: Existierende überschreiben
label_crm_import_page_exist: Die importierte Seite existiert bereits
label_crm_import_layout_exist: Importiertes Layout ist bereits vorhanden
label_crm_import_snippet_exist: Importierter Schnipsel ist bereits vorhanden
label_crm_import_result: Ergebnis des Importes
label_crm_import_success: Objekt erfolgreich importiert
label_crm_import_failed: Import fehlgeschlagen
error_cms_parent_not_found: "Übergeordnete Seite mit dem Namen %{parent_page} nicht gefunden"
error_cms_layour_not_found: „Layout mit Name %{layout_name} nicht gefunden“
label_cms_error_page: Fehlerseite
label_cms_export_website: Webseite exportieren
label_cms_import_website: Webseite importieren
label_cms_website_exports_new: CMS-Website exportieren
label_cms_website_imports_new: CMS-Website importieren
label_crm_import_asset_exist: Importiertee Anlage ist bereits vorhanden
label_cms_page_date: Datum
label_cms_used_in_pages: Wird in Seiten verwendet
label_cms_version: Version
label_cms_author: Autor(in)
label_cms_page_search: Suche nach Name/Slug
label_cms_page_field_name: Seitenfeldname
label_cms_page_part_name: Name des Seitenteils
label_cms_page_part_description: Beschreibung des Seitenteils
label_cms_page_part_content: Inhalt des Seitenteils
label_cms_page_saved_queries: Gespeicherte Abfragen
label_cms_page_tags: Tags
label_cms_created_at: Erstellt
label_cms_updated_at: Aktualisiert
label_cms_menu_edit: Menüpunkt bearbeiten
label_cms_update_conflict: "Die Seite wurde von einem anderen Benutzer aktualisiert, während Sie sie bearbeitet haben."
label_cms_conflict_resolution_overwrite: Wenden Sie meine Änderungen trotzdem an. Einige Änderungen können überschrieben werden
label_cms_conflict_resolution_cancel: Alle meine Änderungen verwerfen und die Seite erneut anzeigen
label_cms_save_page_error: "Beim Speichern der Seite ist ein Fehler aufgetreten."
label_cms_delete_attachments: Angehängte Dateien löschen
label_cms_content_version_plural: CMS-Bearbeitungen

View File

@ -160,4 +160,7 @@ en:
label_cms_conflict_resolution_cancel: Discard all my changes and redisplay the page
label_cms_save_page_error: "An error occurred while saving page."
label_cms_delete_attachments: Delete attached files
label_cms_content_version_plural: CMS edits
label_cms_content_version_plural: CMS edits
label_cms_use_public_urls: Public URLs for assets
button_duplicate: Duplicate

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,9 +1,24 @@
== Redmine CMS plugin changelog
Redmine CMS plugin - content management system for Redmine
Copyright (C) 2011-2021 RedmineUP
Copyright (C) 2011-2023 RedmineUP
http://www.redmineup.com/pages/plugins/cms
== 2023-01-19 v1.2.5
* Fixed edit page bug (redmine_crm gem update required)
== 2023-01-17 v1.2.4
* Added German locale by Carsten Stanusch
* Fixed broken pdf thumbnails
* Fixed filter naming bug
== 2022-04-11 v1.2.3
* Redmine 5 compatibility
* Fixed timelink_url
== 2021-06-02 v1.2.2
* Added Redmine 4.2 compatibility
@ -18,16 +33,16 @@ http://www.redmineup.com/pages/plugins/cms
== 2019-05-28 v1.2.1
* Redmine 4 support
* Redmine 4 support
* Ativity events for CMS
* Added multiple deletion for attchaments
* Added multiple deletion for attchaments
* Fixed page active part url
* Fixed page parts sorting
== 2018-12-18 v1.2.0
* Size of content field for pages changed to long text
* Fixed bug with saving page part Filter
* Fixed bug with saving page part Filter
* Optimistically locking disable during pages import
== 2018-02-14 v1.1.0
@ -51,10 +66,10 @@ http://www.redmineup.com/pages/plugins/cms
* New Page hierarchy structure
* New Parts model based on radiand CMS
* New Liquid filters and tags
* Global variables
* Global assets
* Pages, Parts, Layouts, Snippets history
* Import/export hole site or separate entities
* Global variables
* Global assets
* Pages, Parts, Layouts, Snippets history
* Import/export hole site or separate entities
* Page fields
* Snippets
* Page layouts

21
init.rb
View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
@ -17,13 +17,13 @@
# You should have received a copy of the GNU General Public License
# along with redmine_cms. If not, see <http://www.gnu.org/licenses/>.
requires_redmine_crm :version_or_higher => '0.0.55' rescue raise "\n\033[31mRedmine CMS plugin requires redmine_crm gem version >= 0.0.24.\nPlease update with 'bundle update redmine_crm'.\033[0m"
requires_redmine_crm :version_or_higher => '0.0.59' rescue raise "\n\033[31mRedmine CMS plugin requires redmine_crm gem version >= 0.0.24.\nPlease update with 'bundle update redmine_crm'.\033[0m"
Redmine::Plugin.register :redmine_cms do
name 'Redmine CMS plugin'
author 'RedmineUP'
description 'This is a CMS plugin for Redmine'
version '1.2.2'
version '1.2.4'
url 'https://redmineup.com/pages/plugins/cms'
requires_redmine :version_or_higher => '3.0'
@ -31,7 +31,8 @@ Redmine::Plugin.register :redmine_cms do
settings :default => {
"use_localization" => 1,
"cache_expires" => 10,
"default_layout" => ''
"default_layout" => '',
'use_public_urls' => 0
}
permission :view_cms_pages, {:cms_pages => [:show]}, :public => true, :read => true
@ -66,7 +67,11 @@ Redmine::Plugin.register :redmine_cms do
activity_provider :cms_content_versions, :default => false, :class_name => ['CmsContentVersion']
end
require 'redmine_cms'
require 'redmine/menu'
CmsMenu.rebuild if ActiveRecord::Base.connection.table_exists?(:cms_menus)
if Rails.configuration.respond_to?(:autoloader) && Rails.configuration.autoloader == :zeitwerk
Rails.autoloaders.each { |loader| loader.ignore(File.dirname(__FILE__) + '/lib') }
else
require_dependency 'redmine/menu'
end
require File.dirname(__FILE__) + '/lib/redmine/menu' if Redmine::VERSION.to_s >= '5.0.0'
require File.dirname(__FILE__) + '/lib/redmine_cms'
CmsMenu.rebuild if ActiveRecord::Base.connection.table_exists?(:users) && ActiveRecord::Base.connection.table_exists?(:cms_menus)

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
@ -17,8 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with redmine_cms. If not, see <http://www.gnu.org/licenses/>.
require 'diff'
class ContentVersionAnnotate
attr_reader :lines, :content

52
lib/liquid.rb Normal file
View File

@ -0,0 +1,52 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# redmine_cms is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with redmine_cms. If not, see <http://www.gnu.org/licenses/>.
REQUIRED_DROP_FILES_REDMINE_CMS = [
'liquid/drops/base_drop',
'liquid/drops/cms_attachment_drop',
'liquid/drops/menus_drop',
'liquid/drops/pages_drop',
'liquid/drops/parts_drop',
'liquid/drops/request_drop',
'liquid/drops/site_drop',
'liquid/filters/cms_arrays',
'liquid/filters/cms_base',
'liquid/filters/cms_pages',
'liquid/filters/drops',
'liquid/filters/html',
'liquid/filters/locale',
'liquid/filters/pagination',
'liquid/filters/tags',
'liquid/filters/urls',
'liquid/tags/back_url',
'liquid/tags/cacher',
'liquid/tags/cms_controls',
'liquid/tags/csrf',
'liquid/tags/home_path',
'liquid/tags/paginate',
'liquid/tags/part',
'liquid/tags/render',
'liquid/tags/textile',
'liquid/tags/vote',
]
base_url = File.dirname(__FILE__)
REQUIRED_DROP_FILES_REDMINE_CMS.each { |file| require(base_url + '/' + file) }

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
@ -27,6 +27,10 @@ module RedmineCrm
options[:token] = @attachment.token_sign if @attachment.visible?
size = (options.delete(:size).to_s =~ /^(\d+|\d+x\d+)$/) ? $1 : 100
if RedmineCms.use_public_urls? && @attachment.public?
return RedmineCms::PublicUrl.thumbnail_url(@attachment, options.merge(host_options).merge({size: size, only_path: only_path}))
end
url_for({ controller: 'cms_assets', action: 'thumbnail', id: @attachment, filename: @attachment.filename, size: size, only_path: only_path }
.merge(host_options)
.merge(options))
@ -35,6 +39,9 @@ module RedmineCrm
def asset_url(options = {})
only_path = options.delete(:absolute).to_s != 'true'
options[:token] = @attachment.token_sign if @attachment.visible?
if RedmineCms.use_public_urls? && @attachment.public?
return RedmineCms::PublicUrl.asset_url(@attachment, options.merge(host_options).merge({ only_path: only_path }))
end
url_for({ controller: 'cms_assets', action: 'download', id: @attachment, filename: @attachment.filename, only_path: only_path }
.merge(host_options)
@ -53,7 +60,9 @@ module RedmineCrm
filename: @attachment.filename,
timestamp: timestamp.utc.to_s(:number),
key: RedmineCms::Cryptor.generate_checksum(@attachment.id, timestamp.utc),
only_path: only_path }.merge(options))
only_path: only_path }
.merge(host_options)
.merge(options))
end
private

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify
@ -46,8 +46,9 @@ module RedmineCms
return '' if thumbnail_url.blank?
options = args_to_options(args)
options[:alt] ||= attachment.description.blank? ? attachment.filename : attachment.description
options[:width], options[:height] = extract_dimensions(options.delete(:size)) if options[:size]
tag_options = {:src => thumbnail_url}.merge(options)
content_tag(:img, nil, tag_options)
tag(:img, tag_options)
end
# example:
@ -58,7 +59,7 @@ module RedmineCms
options = args_to_options(args)
options[:alt] ||= attachment.description.blank? ? attachment.filename : attachment.description
tag_options = {:src => attachment.asset_url}.merge(options)
content_tag(:img, nil, tag_options)
tag(:img, tag_options)
end
# example:
@ -72,7 +73,7 @@ module RedmineCms
options = args_to_options(args)
rel = options.delete(:rel) || 'stylesheet'
mime_type = options.delete(:type) || 'text/css'
content_tag(:link, nil, :href => "#{page_url}.css?#{page_drop.digest}", :type => mime_type, :rel => rel)
tag(:link, :href => "#{page_url}.css?#{page_drop.digest}", :type => mime_type, :rel => rel)
end
# example:
@ -118,6 +119,18 @@ module RedmineCms
return '' if part_url.blank?
content_tag(:script, nil, :src => "#{part_url}.js?#{part_drop.digest}")
end
private
def extract_dimensions(size)
size = size.to_s
if /\A\d+x\d+\z/.match?(size)
size.split("x")
elsif /\A\d+\z/.match?(size)
[size, size]
end
end
end
end
end

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
# This file is a part of Redmin CMS (redmine_cms) plugin,
# CMS plugin for redmine
#
# Copyright (C) 2011-2021 RedmineUP
# Copyright (C) 2011-2023 RedmineUP
# http://www.redmineup.com/
#
# redmine_cms is free software: you can redistribute it and/or modify

Some files were not shown because too many files have changed in this diff Show More