diff options
author | gitlabhq <m@gitlabhq.com> | 2012-04-24 21:49:34 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2012-04-24 21:49:34 +0300 |
commit | c9af8e757948838cd6e7232dc189debd61e0c799 (patch) | |
tree | 0fff929c3c0ae92a9278caa34b7365a4e1cf59f0 /app/views/projects | |
parent | af99e4afe18788a536c5e789153235f3ff44f67f (diff) | |
download | gitlab-ce-c9af8e757948838cd6e7232dc189debd61e0c799.tar.gz |
New project page improved. User profile improved. Show issues, participant on Milestone show page.
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/_form.html.haml | 56 | ||||
-rw-r--r-- | app/views/projects/_new_form.html.haml | 29 | ||||
-rw-r--r-- | app/views/projects/create.js.haml | 2 | ||||
-rw-r--r-- | app/views/projects/new.html.haml | 5 |
4 files changed, 62 insertions, 30 deletions
diff --git a/app/views/projects/_form.html.haml b/app/views/projects/_form.html.haml index 8f6244f2f5b..932ed04d11e 100644 --- a/app/views/projects/_form.html.haml +++ b/app/views/projects/_form.html.haml @@ -4,31 +4,39 @@ %ul - @project.errors.full_messages.each do |msg| %li= msg - .clearfix - = f.label :name - .input= f.text_field :name, :placeholder => "Example Project" - .clearfix - = f.label :path do - Path + .clearfix.project_name_holder + = f.label :name do + Project name is .input - .input-prepend - %span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:" - = f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record? - .clearfix - = f.label :code do - Code - .input - .input-prepend - %span.add-on= web_app_url - = f.text_field :code, :placeholder => "example" + = f.text_field :name, :placeholder => "Example Project", :class => "xxlarge" - - unless @project.new_record? || @project.heads.empty? + %hr + .alert.alert-info + %h5 Advanced settings: + .clearfix + = f.label :path do + Git Clone + .input + .input-prepend + %span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:" + = f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record? + %span.add-on= ".git" .clearfix - = f.label :default_branch, "Default Branch" - .input= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:210px;") + = f.label :code do + URL + .input + .input-prepend + %span.add-on= web_app_url + = f.text_field :code, :placeholder => "example" + + - unless @project.new_record? || @project.heads.empty? + .clearfix + = f.label :default_branch, "Default Branch" + .input= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:210px;") - .alert-message.block-message.warning - %h5 Features + - unless @project.new_record? + .alert.alert-info + %h5 Features: .clearfix = f.label :issues_enabled, "Issues" @@ -46,12 +54,6 @@ = f.label :wiki_enabled, "Wiki" .input= f.check_box :wiki_enabled - .clearfix - = f.label :description - .input - = f.text_area :description, :placeholder => "project description", :class => "xxlarge", :rows => 5 - %p.hint Markdown is enabled. - %br .actions diff --git a/app/views/projects/_new_form.html.haml b/app/views/projects/_new_form.html.haml new file mode 100644 index 00000000000..240ee884783 --- /dev/null +++ b/app/views/projects/_new_form.html.haml @@ -0,0 +1,29 @@ += form_for(@project, :remote => true) do |f| + - if @project.errors.any? + .alert-message.block-message.error + %span= @project.errors.full_messages.first + .clearfix.project_name_holder + = f.label :name do + Project name is + .input + = f.text_field :name, :placeholder => "Example Project", :class => "xxlarge" + = f.submit 'Create project', :class => "btn primary" + + %hr + .alert.alert-info + %h5 Advanced settings: + .clearfix + = f.label :path do + Git Clone + .input + .input-prepend + %span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:" + = f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record? + %span.add-on= ".git" + .clearfix + = f.label :code do + URL + .input + .input-prepend + %span.add-on= web_app_url + = f.text_field :code, :placeholder => "example" diff --git a/app/views/projects/create.js.haml b/app/views/projects/create.js.haml index 80ca332da37..859c985a308 100644 --- a/app/views/projects/create.js.haml +++ b/app/views/projects/create.js.haml @@ -4,5 +4,5 @@ - else :plain $('.project_new_holder').show(); - $("#new_project").replaceWith("#{escape_javascript(render('form'))}"); + $("#new_project").replaceWith("#{escape_javascript(render('new_form'))}"); $('.ajax_loader').hide(); diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index 3f3d51d038a..ef3e3ac4c08 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -1,7 +1,8 @@ .project_new_holder - %h3 New Project + %h3 + New Project %hr - = render 'form' + = render 'new_form' %div.ajax_loader.hide %center %div.padded= image_tag "ajax_loader.gif" |