Skip to content
Browse files

優先度のみを考慮したシンプルなバージョンを作成

  • Loading branch information...
1 parent d3f80f4 commit cc82cc945ca94810e637e0661002e67e082becc2 @maedana committed Feb 20, 2009
View
7 app/controllers/bugcloud_controller.rb
@@ -0,0 +1,7 @@
+class BugcloudController < ApplicationController
+
+ def index
+ @project = Project.find params[:id]
+ @issues = @project.issues
+ end
+end
View
2 app/helpers/bugcloud_helper.rb
@@ -0,0 +1,2 @@
+module BugcloudHelper
+end
View
12 app/views/bugcloud/index.html.erb
@@ -0,0 +1,12 @@
+<% content_for :header_tags do %>
+ <%= stylesheet_link_tag 'bugcloud', :plugin => 'redmine_bugcloud' %>
+<% end %>
+
+<h2><%= l(:bugcloud) %></h2>
+<ul class="tagCloud12">
+<% @issues.each do |issue| -%>
+ <li class="level<%= h issue.priority.position %>">
+ <%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %>
+ </li>
+<% end -%>
+</ul>
View
54 assets/stylesheets/bugcloud.css
@@ -0,0 +1,54 @@
+ul.tagCloud12 {
+ font-family:Arial,Helvetica,sans-serif;
+ font-size:13px;
+ padding:0.5em 10px;
+}
+ul.tagCloud12 li {
+ display:inline;
+ font-size:100%;
+ margin:0;
+ padding:0;
+}
+ul.tagCloud12 li a {
+ background-color:#FFFFFF;
+ color:#FFFFFF;
+ padding:0 5px;
+ position:relative;
+ text-decoration:none;
+}
+ul.tagCloud12 li.level1 a {
+ background-color:#6897AF;
+ font-size:167%;
+ z-index:6;
+}
+ul.tagCloud12 li.level2 a {
+ background-color:#7EA6BA;
+ font-size:136%;
+ top:5px;
+ z-index:5;
+}
+ul.tagCloud12 li.level3 a {
+ background-color:#95B6C7;
+ font-size:114%;
+ z-index:4;
+}
+ul.tagCloud12 li.level4 a {
+ background-color:#ACC6D3;
+ font-size:100%;
+ top:5px;
+ z-index:3;
+}
+ul.tagCloud12 li.level5 a {
+ background-color:#C3D6DF;
+ font-size:85%;
+ z-index:2;
+}
+ul.tagCloud12 li.level6 a {
+ background-color:#D9E5EB;
+ font-size:70%;
+ z-index:1;
+}
+ul.tagCloud12 li a:hover {
+ background-color:#5A89A1;
+ z-index:10;
+}
View
7 init.rb
@@ -2,7 +2,10 @@
Redmine::Plugin.register :redmine_bugcloud do
name 'Redmine Bugcloud plugin'
- author 'Author name'
- description 'This is a plugin for Redmine'
+ author 'maedana'
+ description 'This is a plugin for Redmine. The view that displays the ticket like the tag cloud is added. '
version '0.0.1'
+
+ permission :bugcloud, { :bugcloud => [:index] }, :public => true
+ menu :project_menu, :bugcloud, { :controller => 'bugcloud', :action => 'index' }, :caption => :bugcloud, :last => true
end
View
2 lang/en.yml
@@ -1,2 +1,2 @@
# English strings go here
-my_label: "My label"
+bugcloud: "Bugcloud"
View
1 lang/ja.yml
@@ -0,0 +1 @@
+bugcloud: "バグクラウド"
View
8 test/functional/bugcloud_controller_test.rb
@@ -0,0 +1,8 @@
+require File.dirname(__FILE__) + '/../test_helper'
+
+class BugcloudControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ def test_truth
+ assert true
+ end
+end

0 comments on commit cc82cc9

Please sign in to comment.
Something went wrong with that request. Please try again.