OSDN Git Service

1. Set Helvetica as primary font; 2. removed tabs
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>
Wed, 9 Nov 2011 19:26:24 +0000 (21:26 +0200)
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>
Wed, 9 Nov 2011 19:26:24 +0000 (21:26 +0200)
app/assets/stylesheets/style.scss
app/helpers/issues_helper.rb
app/helpers/tags_helper.rb

index 13f26d9..b6bc354 100755 (executable)
@@ -670,3 +670,13 @@ body.projects-page .browse-code{margin-right: 10px}
   p, h2, h3 { orphans: 3; widows: 3; }
   h2, h3 { page-break-after: avoid; }
 }
+
+/**
+ * author:DZ
+ * date: Nov 09
+ * fix different fonts for firefox & webkit
+ */
+body, button, input, select, textarea {
+  font-family: "Helvetica", sans-serif;
+}
+
index bdb6c28..d09fad5 100644 (file)
@@ -1,12 +1,12 @@
 module IssuesHelper
-       def sort_class
-               if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
-                       "handle"
-               end
-       end
-       
-       def project_issues_filter_path project, params = {}
-               params[:f] ||= cookies['issue_filter']
-               project_issues_path project, params
-       end
+  def sort_class
+    if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
+                        "handle"
+    end
+  end
+
+  def project_issues_filter_path project, params = {}
+    params[:f] ||= cookies['issue_filter']
+    project_issues_path project, params
+  end
 end
index 5c1ecc8..ebed6a8 100644 (file)
@@ -1,15 +1,14 @@
 module TagsHelper
-       def tag_path tag
-               "/tags/#{tag}"
-       end
+  def tag_path tag
+    "/tags/#{tag}"
+  end
 
-       def tag_list project
-               html = ''
-               project.tag_list.each do |tag|
-                       html += link_to tag, tag_path(tag)
-               end
-               
-               html.html_safe
-       end
+  def tag_list project
+    html = ''
+    project.tag_list.each do |tag|
+      html += link_to tag, tag_path(tag)
+    end
 
+    html.html_safe
+  end
 end