summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGosha Arinich <me@goshakkk.name>2012-03-26 12:11:02 +0300
committerGosha Arinich <me@goshakkk.name>2012-03-26 12:11:02 +0300
commit73404f6281f46b4dd68e5ebde48a242ed8adacc5 (patch)
tree9321092e61099851917c3889851b50da35398629 /app
parent39ea486e1f9701f2a6e91155d2dfd205edd4c94e (diff)
downloadgitlab-ce-73404f6281f46b4dd68e5ebde48a242ed8adacc5.tar.gz
there should be no space after '(' and before ')'
Diffstat (limited to 'app')
-rw-r--r--app/views/admin/mailer/preview.html.haml2
-rw-r--r--app/views/admin/projects/show.html.haml2
-rw-r--r--app/views/commits/compare.html.haml4
-rw-r--r--app/views/dashboard/index.html.haml6
-rw-r--r--app/views/dashboard/issues.html.haml2
-rw-r--r--app/views/dashboard/merge_requests.html.haml2
-rw-r--r--app/views/issues/create.js.haml2
-rw-r--r--app/views/keys/create.js.haml2
-rw-r--r--app/views/layouts/_head_panel.html.haml2
-rw-r--r--app/views/refs/_tree_file.html.haml8
-rw-r--r--app/views/wikis/history.html.haml6
11 files changed, 18 insertions, 20 deletions
diff --git a/app/views/admin/mailer/preview.html.haml b/app/views/admin/mailer/preview.html.haml
index 60e24588487..23ea7381cf5 100644
--- a/app/views/admin/mailer/preview.html.haml
+++ b/app/views/admin/mailer/preview.html.haml
@@ -25,4 +25,4 @@
:javascript
$(function() {
- $( "#accordion" ).accordion(); });
+ $("#accordion").accordion(); });
diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml
index 5142dac55c4..6685738bb32 100644
--- a/app/views/admin/projects/show.html.haml
+++ b/app/views/admin/projects/show.html.haml
@@ -36,7 +36,7 @@
%h3
Team
%small
- ( #{@admin_project.users_projects.count} )
+ (#{@admin_project.users_projects.count})
%hr
diff --git a/app/views/commits/compare.html.haml b/app/views/commits/compare.html.haml
index 877bd40709b..a4b07e29ceb 100644
--- a/app/views/commits/compare.html.haml
+++ b/app/views/commits/compare.html.haml
@@ -36,12 +36,12 @@
$(function() {
var availableTags = #{@project.heads.map(&:name).to_json};
- $( "#from" ).autocomplete({
+ $("#from").autocomplete({
source: availableTags,
minLength: 1
});
- $( "#to" ).autocomplete({
+ $("#to").autocomplete({
source: availableTags,
minLength: 1
});
diff --git a/app/views/dashboard/index.html.haml b/app/views/dashboard/index.html.haml
index 0199cb9d308..3bd411da58c 100644
--- a/app/views/dashboard/index.html.haml
+++ b/app/views/dashboard/index.html.haml
@@ -11,7 +11,7 @@
%span.ico.projects
= link_to "Projects" , "#projects", :id => "projects"
%small
- ( most recent )
+ (most recent)
%strong.right
= link_to projects_path do
@@ -55,7 +55,7 @@
%h3
= link_to "Merge Requests" , "#merge_requests", :id => "merge_requests"
- %small ( authored or assigned to you )
+ %small (authored or assigned to you)
%strong.right
= link_to dashboard_merge_requests_path do
Visit merge requests page &rarr;
@@ -67,7 +67,7 @@
%div.dashboard_category
%h3
= link_to "Issues" , "#issues", :id => "issues"
- %small ( assigned to you )
+ %small (assigned to you)
%strong.right
= link_to dashboard_issues_path do
Visit issues page &rarr;
diff --git a/app/views/dashboard/issues.html.haml b/app/views/dashboard/issues.html.haml
index c543dbe920a..7b9cd8c42d8 100644
--- a/app/views/dashboard/issues.html.haml
+++ b/app/views/dashboard/issues.html.haml
@@ -1,6 +1,6 @@
%h3
Issues
- %small ( assigned to you )
+ %small (assigned to you)
%br
- if @issues.any?
diff --git a/app/views/dashboard/merge_requests.html.haml b/app/views/dashboard/merge_requests.html.haml
index 4acdb4dae28..6720a81f466 100644
--- a/app/views/dashboard/merge_requests.html.haml
+++ b/app/views/dashboard/merge_requests.html.haml
@@ -1,6 +1,6 @@
%h3
Merge Requests
- %small ( authored or assigned to you )
+ %small (authored or assigned to you)
%br
- if @merge_requests.any?
diff --git a/app/views/issues/create.js.haml b/app/views/issues/create.js.haml
index f9d26c52684..abf3f6b858b 100644
--- a/app/views/issues/create.js.haml
+++ b/app/views/issues/create.js.haml
@@ -1,7 +1,7 @@
- if @issue.valid?
:plain
switchFromNewIssue();
- $("#issues-table").prepend("#{escape_javascript(render(:partial => 'show', :locals => {:issue => @issue} ))}");
+ $("#issues-table").prepend("#{escape_javascript(render(:partial => 'show', :locals => {:issue => @issue}))}");
$.ajax({type: "GET", url: location.href, dataType: "script"});
- else
:plain
diff --git a/app/views/keys/create.js.haml b/app/views/keys/create.js.haml
index 0e8757f880f..b0d7f528be1 100644
--- a/app/views/keys/create.js.haml
+++ b/app/views/keys/create.js.haml
@@ -1,7 +1,7 @@
- if @key.valid?
:plain
$("#new_key_dialog").dialog("close");
- $("#keys-table .data").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key} ))}");
+ $("#keys-table .data").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key}))}");
$("#no_ssh_key_defined").hide();
- else
:plain
diff --git a/app/views/layouts/_head_panel.html.haml b/app/views/layouts/_head_panel.html.haml
index 88429a4857e..70c8f9e9c1c 100644
--- a/app/views/layouts/_head_panel.html.haml
+++ b/app/views/layouts/_head_panel.html.haml
@@ -29,7 +29,7 @@
});
$(document).keypress(function(e) {
- if( $(e.target).is(":input") ) return;
+ if($(e.target).is(":input")) return;
switch(e.which) {
case 115: focusSearch();
e.preventDefault();
diff --git a/app/views/refs/_tree_file.html.haml b/app/views/refs/_tree_file.html.haml
index 1077a346e6e..69b7c8862b7 100644
--- a/app/views/refs/_tree_file.html.haml
+++ b/app/views/refs/_tree_file.html.haml
@@ -2,12 +2,12 @@
.view_file
.view_file_header
.row
- .span1.file_icon= image_tag( file.image? ? "file_img.png" : "file_txt.png")
+ .span1.file_icon= image_tag(file.image? ? "file_img.png" : "file_txt.png")
.span2.mode_text= file.mode
.span7.file_name= name
.span4.right
- = link_to "raw", blob_project_ref_path(@project, @ref, :path => params[:path] ), :class => "right", :target => "_blank"
- = link_to "history", project_commits_path(@project, :path => params[:path], :ref => @ref ), :class => "right", :style => "margin-right:10px;"
+ = link_to "raw", blob_project_ref_path(@project, @ref, :path => params[:path]), :class => "right", :target => "_blank"
+ = link_to "history", project_commits_path(@project, :path => params[:path], :ref => @ref), :class => "right", :style => "margin-right:10px;"
- if file.text?
.view_file_content
- unless file.empty?
@@ -22,7 +22,7 @@
%img{ :src => "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"}
- else
%center
- = link_to blob_project_ref_path(@project, @ref, :path => params[:path] ) do
+ = link_to blob_project_ref_path(@project, @ref, :path => params[:path]) do
%div
%br
= image_tag "download.png", :width => 64
diff --git a/app/views/wikis/history.html.haml b/app/views/wikis/history.html.haml
index ad5a50b8136..6a9b56ae771 100644
--- a/app/views/wikis/history.html.haml
+++ b/app/views/wikis/history.html.haml
@@ -11,9 +11,7 @@
%td= i + 1
%td
= link_to wiki_page.created_at.to_s(:short), project_wiki_path(@project, wiki_page, :old_page_id => wiki_page.id)
- (
- = time_ago_in_words(wiki_page.created_at)
- ago
- )
+ (#{time_ago_in_words(wiki_page.created_at)}
+ ago)
%td= wiki_page.user.name