Sha256: a5899659b5cbfe1e391aeb79aedb1d7ad85e1c5b97383b71ae1558ed79ba86ea

Contents?: true

Size: 1.96 KB

Versions: 9

Compression:

Stored size: 1.96 KB

Contents

<% content_for :header_tags do %>

  <%
    standard_lang_files = [
        :notice_successful_create,
        :notice_successful_update,
        :notice_successful_delete,
        :error_default_server_error,
        :notice_not_implemented,
        :notice_service_unavailable,
        :notice_not_authorized,
        :notice_not_acceptable,
        :label_updated_on,

        :field_created_on,
        :field_updated_on,
        :field_tracker,
        :field_description,
        :field_assigned_to,
        :field_status,
        :field_fixed_version,
        :field_done_ratio,
        :field_start_date,
        :field_due_date,
        :field_estimated_hours,
        :field_homepage,
        :field_author,
        :field_spent_hours,
        :field_priority,
        :field_activity,
        :field_category,

        :button_save,
        :button_delete,
        :button_submit,
        :label_expand_editor,
        :label_collapse_editor,
        :text_are_you_sure,
        :general_text_Yes,
        :general_text_No,
        :button_cancel,
        :button_print,
        :button_edit,
        :button_close,
        :label_favorite,
        :label_unfavorite,
        :button_fullscreen,
        :label_no_entity_selected,
        :date
    ]

    user = User.current

    front_end_commons = {
        global_settings: {
            locale: I18n.locale,
            date_format: Setting.date_format,
            html5_dates: EasySetting.value('html5_dates'),
            ckeditor_toolbar_config: EasySetting.value('ckeditor_toolbar_config') || 'Basic',
            show_issue_id: EasySetting.value('show_issue_id')
        },
        user: {
            id: User.current.id,
            name: User.current.name,
            avatar_url: easy_avatar_url(user)
        },
        standard_lang_files: Hash[*standard_lang_files.collect { |v| [v, l(v)] }.flatten]
    }

  %>
  <script>
    window.frontEndCommons = "<%= j(front_end_commons.to_json.html_safe) %>";
  </script>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
redmine_extensions-1.2.0 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-1.1.2 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-1.1.1 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-1.1.0 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-1.0.0 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-0.6.3 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-0.6.2 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-0.6.1 app/views/easy_front_end/_easy_front_end.html.erb
redmine_extensions-0.6.0 app/views/easy_front_end/_easy_front_end.html.erb