Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the calendar urls only on the calendar page #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions app/views/sidebar/_calendars.html.erb
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<%# redmics - redmine ics export plugin, Copyright (c) 2010-2011 Frank Schwarz, [email protected] %>
<%# Only show Calendars in Calendar view ([email protected]) %>
<%
user = User.current
%>
<% if user.allowed_to?(:view_calendar, project, :global => true) %>

<% if user.allowed_to?(:view_calendar, project, :global => true) and current_menu_item().to_s == "calendar" %>
<h3><%= l(:label_icalendar_header) %></h3>
<% unless user.anonymous? %>
<%= link_to l(:label_issues_mine), { :controller => 'i_calendar', :assignment => :my, :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>
(<%= link_to l(:label_issues_open_only), { :controller => 'i_calendar', :assignment => :my, :status => 'open', :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>)
-- (<%= link_to l(:label_issues_open_only), { :controller => 'i_calendar', :assignment => :my, :status => 'open', :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>)
<br/>
<% end %>
<%= link_to l(:label_issues_assigned), { :controller => 'i_calendar', :assignment => :assigned, :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>
(<%= link_to l(:label_issues_open_only), { :controller => 'i_calendar', :assignment => :assigned, :status => 'open', :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>)
-- (<%= link_to l(:label_issues_open_only), { :controller => 'i_calendar', :assignment => :assigned, :status => 'open', :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>)
<br/>
<%= link_to l(:label_issues_all), { :controller => 'i_calendar', :assignment => :all, :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>
(<%= link_to l(:label_issues_open_only), { :controller => 'i_calendar', :assignment => :all, :status => 'open', :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>)
-- (<%= link_to l(:label_issues_open_only), { :controller => 'i_calendar', :assignment => :all, :status => 'open', :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>)
<% if @query && @query.id %>
<br/>
<%= link_to @query.name, { :controller => 'i_calendar', :query_id => @query.id, :action => 'index', :project_id => project, :key => user.rss_key, :format => 'ics' }, :title => l(:toolip_icalendar_link) %>
Expand Down
58 changes: 29 additions & 29 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# German strings go here
de:
label_icalendar_header: ICalendar
label_issues_mine: Meine Tickets
label_issues_assigned: Zugewiesene Tickets
label_issues_all: Alle Tickets
label_issues_open_only: nur offene
toolip_icalendar_link: Kopieren Sie die Link-Adresse und nutzen Sie sie in Ihrer bevorzugten ICal-Anwendung.
label_settings_rendering_header: Art der Ausgabe
label_settings_rendering_issues: Ticket-Darstellung als
label_settings_rendering_versions: Version-Darstellung als
option_settings_rendering_none: keine Darstellung
option_settings_rendering_vevent_full_span: durchgängiges Ereignis
option_settings_rendering_vevent_end_date: ganztägiges Ereignis zum Ende-Datum
option_settings_rendering_vevent_start_and_end_date: ganztägige Ereignisse zum Start- und Ende-Datum
option_settings_rendering_vtodo: Aufgabe
text_settings_rendering_more_information: Weitere Informationen unter
label_redmics_settings_userprefs: ICS Export
notice_redmics_userprefs_updated: ICS Export Einstellungen wurden erfolgreich aktualisiert
notice_redmics_userprefs_reset: ICS Export Einstellungen wurden zurückgesetzt
label_settings_enhance_summary: Erweitere die Zusammenfassung
option_settings_enhance_summary_plain: lasse sie unverändert
option_settings_enhance_summary_status: um den Status
option_settings_enhance_summary_ticket_number_and_status: um Ticketnummer und Status
label_settings_enhance_description: Erweitere die Beschreibung
option_settings_enhance_description_plain: lasse sie unverändert
option_settings_enhance_description_url_and_version: um die URL und die Version
option_settings_enhance_description_full_no_url: um alle verfügbaren Informationen ohne URL
option_settings_enhance_description_full: um alle verfügbaren Informationen
# German strings go here
de:
label_icalendar_header: Kalender Abo
label_issues_mine: Meine Tickets
label_issues_assigned: Zugewiesene Tickets
label_issues_all: Alle Tickets
label_issues_open_only: nur offene
toolip_icalendar_link: Kopieren Sie die Link-Adresse und nutzen Sie sie in Ihrer bevorzugten ICal-Anwendung.
label_settings_rendering_header: Art der Ausgabe
label_settings_rendering_issues: Ticket-Darstellung als
label_settings_rendering_versions: Version-Darstellung als
option_settings_rendering_none: keine Darstellung
option_settings_rendering_vevent_full_span: durchgängiges Ereignis
option_settings_rendering_vevent_end_date: ganztägiges Ereignis zum Ende-Datum
option_settings_rendering_vevent_start_and_end_date: ganztägige Ereignisse zum Start- und Ende-Datum
option_settings_rendering_vtodo: Aufgabe
text_settings_rendering_more_information: Weitere Informationen unter
label_redmics_settings_userprefs: ICS Export
notice_redmics_userprefs_updated: ICS Export Einstellungen wurden erfolgreich aktualisiert
notice_redmics_userprefs_reset: ICS Export Einstellungen wurden zurückgesetzt
label_settings_enhance_summary: Erweitere die Zusammenfassung
option_settings_enhance_summary_plain: lasse sie unverändert
option_settings_enhance_summary_status: um den Status
option_settings_enhance_summary_ticket_number_and_status: um Ticketnummer und Status
label_settings_enhance_description: Erweitere die Beschreibung
option_settings_enhance_description_plain: lasse sie unverändert
option_settings_enhance_description_url_and_version: um die URL und die Version
option_settings_enhance_description_full_no_url: um alle verfügbaren Informationen ohne URL
option_settings_enhance_description_full: um alle verfügbaren Informationen
58 changes: 29 additions & 29 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# English strings go here
en:
label_icalendar_header: ICalendar
label_issues_mine: My issues
label_issues_assigned: Assigned issues
label_issues_all: All issues
label_issues_open_only: open only
toolip_icalendar_link: Copy the link location for use in your favorite ical-application.
label_settings_rendering_header: Render options
label_settings_rendering_issues: Issue rendering as
label_settings_rendering_versions: Version rendering as
option_settings_rendering_none: skip rendering
option_settings_rendering_vevent_full_span: full time event
option_settings_rendering_vevent_end_date: all-day event for just the end date
option_settings_rendering_vevent_start_and_end_date: all-day event for start and end date
option_settings_rendering_vtodo: todo item
text_settings_rendering_more_information: For more information see
label_redmics_settings_userprefs: ICS export
notice_redmics_userprefs_updated: ICS export settings have been updated sucessfully
notice_redmics_userprefs_reset: ICS export settings have been reset
label_settings_enhance_summary: Enhance summary with
option_settings_enhance_summary_plain: keep as is
option_settings_enhance_summary_status: status
option_settings_enhance_summary_ticket_number_and_status: ticket number and status
label_settings_enhance_description: Enhance description with
option_settings_enhance_description_plain: keep as is
option_settings_enhance_description_url_and_version: URL and version
option_settings_enhance_description_full_no_url: all available information without URL
option_settings_enhance_description_full: all available information
# English strings go here
en:
label_icalendar_header: Calendar abo
label_issues_mine: My issues
label_issues_assigned: Assigned issues
label_issues_all: All issues
label_issues_open_only: open only
toolip_icalendar_link: Copy the link location for use in your favorite ical-application.
label_settings_rendering_header: Render options
label_settings_rendering_issues: Issue rendering as
label_settings_rendering_versions: Version rendering as
option_settings_rendering_none: skip rendering
option_settings_rendering_vevent_full_span: full time event
option_settings_rendering_vevent_end_date: all-day event for just the end date
option_settings_rendering_vevent_start_and_end_date: all-day event for start and end date
option_settings_rendering_vtodo: todo item
text_settings_rendering_more_information: For more information see
label_redmics_settings_userprefs: ICS export
notice_redmics_userprefs_updated: ICS export settings have been updated sucessfully
notice_redmics_userprefs_reset: ICS export settings have been reset
label_settings_enhance_summary: Enhance summary with
option_settings_enhance_summary_plain: keep as is
option_settings_enhance_summary_status: status
option_settings_enhance_summary_ticket_number_and_status: ticket number and status
label_settings_enhance_description: Enhance description with
option_settings_enhance_description_plain: keep as is
option_settings_enhance_description_url_and_version: URL and version
option_settings_enhance_description_full_no_url: all available information without URL
option_settings_enhance_description_full: all available information