Showing posts with label Redmine. Show all posts
Showing posts with label Redmine. Show all posts

Monday, February 10, 2014

Redmine plugin asset pipelining

<%= stylesheet_link_tag :stylesheetname, :plugin => 'pluginname' %>

same convention is applicable for *.js files

example:

<%= stylesheet_link_tag :dashboard, :plugin => 'imeetdashboard' %>

Wednesday, December 11, 2013

Redmine plugin creation in Ubuntu 13.10

export RAILS_ENV="production" 
ruby script/rails generate redmine_plugin testPlugin

Monday, December 9, 2013

Redmine: Retrieving all issues according to reverse chronological order

@issues  = Issue.order("created_on DESC").all

Redmine: Hiding the top menu before authentication

Change the following file from

file :: redmine/app/views/layouts/base.html.erb



<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>


to
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
 <%= render_menu :top_menu if User.current.logged? %>

Saturday, December 7, 2013

Redmine: Calendar object creation



 <% @year ||= Date.today.year %> 
     <% @month ||= Date.today.month %>
   
     
      
    <% end %>
   
   <%@calendarLocal = Redmine::Helpers::Calendar.new(Date.civil(@year, @month, 1), current_language, :week) %>

  <%=render :partial => 'common/calendar', :locals => {:calendar => @calendarLocal} %>

Redmine: Redirecting a link to project's calendar page





<%=  link_to project.name,project_path(project) << "/issues/calendar" %>