clean up whitespace from project

This commit is contained in:
Nihad Abbasov 2011-11-15 12:34:30 +04:00
parent 415eddaf39
commit 368deb5992
50 changed files with 356 additions and 413 deletions

View file

@ -1,7 +1,7 @@
= form_for [:admin, @admin_project] do |f|
-if @admin_project.errors.any?
#error_explanation
%h2= "#{pluralize(@admin_project.errors.count, "error")} prohibited this admin_project from being saved:"
%h2= "#{pluralize(@admin_project.errors.count, "error")} prohibited this admin_project from being saved:"
%ul
- @admin_project.errors.full_messages.each do |msg|
%li= msg
@ -19,7 +19,6 @@
%br
= f.text_field :path
.form-row
= f.label :tag_list
%br
@ -36,4 +35,4 @@
:javascript
$(function(){
taggifyForm();
})
})

View file

@ -6,7 +6,7 @@
%h2.icon
%span
%d
= link_to project_commits_path(@project) do
= link_to project_commits_path(@project) do
= @project.name
- if params[:path]
\/
@ -20,8 +20,6 @@
.loading{ :style => "display:none;"}
%center= image_tag "ajax-loader.gif"
:javascript
$(function(){
CommitsList.init("#{@ref}", 20);

View file

@ -27,13 +27,13 @@
%a.project-update{:href => dashboard_feed_path(project, update)}
= image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
%span.update-title
- if update.kind_of?(Grit::Commit)
- if update.kind_of?(Grit::Commit)
%span.right.tag.commit= update.head.name
= dashboard_feed_title(update)
%span.update-author
%strong= update.author_name
authored
= time_ago_in_words(update.created_at)
= time_ago_in_words(update.created_at)
ago
/ #news-feed
/ #dashboard-content

View file

@ -18,7 +18,7 @@
- if can? current_user, :write_issue, issue
- if issue.closed
= link_to 'Reopen', project_issue_path(@project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "cgray", :remote => true
- else
- else
= link_to 'Resolve', project_issue_path(@project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "cgray", :remote => true
- if can? current_user, :write_issue, issue
= link_to 'Edit', edit_project_issue_path(@project, issue), :class => "cgray edit-issue-link", :remote => true

View file

@ -31,7 +31,6 @@
var href = $('.issue_search').parent().attr('action');
var last_terms = '';
var setIssueFilter = function(form, value){
$.cookie('issue_filter', value, { expires: 140 });
form.submit();

View file

@ -22,12 +22,12 @@
%td
= image_tag gravatar_icon(@issue.assignee.email), :class => "left", :width => 40, :style => "padding:0 5px;"
= @issue.assignee.name
%tr
%tr
%td Tags
%td
- if @issue.critical
%span.tag.high critical
- else
- else
%span.tag.normal normal
- if @issue.today?
@ -42,7 +42,6 @@
- else
= check_box_tag "closed", 1, @issue.closed, :disabled => true
- if can?(current_user, :write_issue, @issue)
.clear
%br

View file

@ -10,7 +10,7 @@
<div class="account-links">
<%= link_to profile_path, :class => "username" do %>
<%#= current_user.name %>
<%#= current_user.name %>
My profile
<% end %>
<%= link_to 'Logout', destroy_user_session_path, :class => "logout", :method => :delete %>

View file

@ -19,7 +19,7 @@
%aside
= link_to "Profile", profile_path, :class => current_page?(:controller => "profile", :action => :show) ? "current" : nil
= link_to "Password", profile_password_path, :class => current_page?(:controller => "profile", :action => :password) ? "current" : nil
= link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do
= link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do
Keys
- unless current_user.keys.empty?
%span{ :class => "number" }= current_user.keys.count

View file

@ -14,7 +14,7 @@
%br
%br
= f.text_area :note, :size => 255
%div.attach_holder
%br
= f.label :attachment

View file

@ -4,7 +4,6 @@
:plain
NoteList.replace(#{@notes.last.id}, #{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
- elsif params[:last_id]
:plain
NoteList.prepend(#{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");

View file

@ -7,7 +7,7 @@
ago
- if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note right"
%div.note-title
= markdown(note.note)
- if note.attachment.url

View file

@ -5,11 +5,11 @@
%span.update-author
%strong= update.author_name
authored
= time_ago_in_words(update.created_at)
= time_ago_in_words(update.created_at)
ago
.right
- klass = update.class.to_s.split("::").last.downcase
%span.tag{ :class => klass }= klass
- if update.kind_of?(Grit::Commit)
- if update.kind_of?(Grit::Commit)
%span.tag.commit= update.head.name

View file

@ -1,7 +1,7 @@
= form_for(@project, :remote => true) do |f|
%div.form_content
- unless @project.new_record?
%h2.icon
%h2.icon
%span
= @project.name
- if @project.errors.any?
@ -56,4 +56,4 @@
:javascript
$(function(){
taggifyForm();
})
})

View file

@ -14,7 +14,6 @@
= project.name
.small-tags= tag_list project
%td= truncate project.url_to_repo
%td= project.code
%td= check_box_tag "read", 1, project.readers.include?(current_user), :disabled => :disabled

View file

@ -1,7 +1,6 @@
= form_tag destination, :method => :get, :class => "project-refs-form" do
= select_tag "ref", grouped_options_refs, :onchange => "this.form.submit();", :class => "project-refs-select"
:javascript
$(function(){
$('.project-refs-select').chosen();

View file

@ -2,7 +2,7 @@
- projects.each_with_index do |project, i|
%div.grid_1.projects_selector
%div{ :class => "project-box ui-box ui-box-big" }
= link_to project_path(project) do
= link_to project_path(project) do
%h3= truncate(project.name, :length => 20)
.data
%p.title.repository.git_url_wrapper

View file

@ -1,4 +1,3 @@
-#%a.right.button{:href => "#"} Download
-#-if can? current_user, :admin_project, @project
%a.right.button.blue{:href => "#"} EDIT
@ -6,7 +5,7 @@
%h2.icon
%span
%d
= link_to tree_project_path(@project, :path => nil, :commit_id => @commit.try(:id)), :remote => true do
= link_to tree_project_path(@project, :path => nil, :commit_id => @commit.try(:id)), :remote => true do
= @project.name
- if params[:path]
- part_path = ""

View file

@ -4,7 +4,7 @@
.grid_4
- if current_user.can_create_project?
%a.grey-button.right{:href => new_project_path} Create new project
%h2.icon
%h2.icon
%span
Projects

View file

@ -1,10 +1,10 @@
- content_for(:body_class, "new-project-page")
- content_for(:page_title) do
.new-project-hodler
.container
%h2.icon
%span
New Project
.new-project-hodler
.container
%h2.icon
%span
New Project
%div.clear
= render 'form'
%div.clear
= render 'form'

View file

@ -4,7 +4,7 @@
%table.round-borders#snippets-table
%thead
%th
%th
= render @snippets.fresh
:javascript
$('.delete-snippet').live('ajax:success', function() {

View file

@ -1,11 +1,10 @@
- content_for(:body_class, "projects-page")
- content_for(:page_title) do
.grid_4
%h2
%h2
Tags
.tags-list
- @tags.all.each do |tag|
= link_to "#{tag.name}(#{tag.count})", tag_path(name)