Admin gitolite logs. Refactored project creation. Few style fixes.

This commit is contained in:
Dmitriy Zaporozhets 2012-07-05 21:59:37 +03:00
parent 369df86e71
commit d40b9ce26d
15 changed files with 66 additions and 24 deletions

View file

@ -0,0 +1,6 @@
%h4
%i.icon-file
githost.log
%pre.logs
- Gitlab::Logger.read_latest.each do |line|
%span.log= line

View file

@ -12,5 +12,5 @@
= time_ago_in_words(event.created_at)
ago.
= link_to new_mr_path_from_push_event(event), :title => "New Merge Request", :class => "btn small grouped primary" do
= link_to new_mr_path_from_push_event(event), :title => "New Merge Request", :class => "btn very_small primary" do
Create Merge Request

View file

@ -12,6 +12,8 @@
= link_to "Projects", admin_projects_path
%li{:class => tab_class(:admin_users)}
= link_to "Users", admin_users_path
%li{:class => tab_class(:admin_logs)}
= link_to "Logs", admin_logs_path
%li{:class => tab_class(:admin_emails)}
= link_to "Emails", admin_emails_path
%li{:class => tab_class(:admin_resque)}

View file

@ -10,17 +10,16 @@
.input
= f.text_field :name, :placeholder => "Example Project", :class => "xxlarge"
%hr
%h5.page_title
.alert.alert-info
%h5 Advanced settings:
.clearfix
= f.label :path do
Git Clone
Path
.input
.input-prepend
%span.add-on= Gitlab.config.ssh_path
= f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record?
%span.add-on= ".git"
%strong
= text_field_tag :ppath, @project.path_to_repo, :class => "xlarge", :disabled => true
.clearfix
= f.label :code do
URL

View file

@ -1,7 +1,10 @@
- if @project.valid?
- if @project.saved?
:plain
location.href = "#{project_path(@project, :notice => 'Project was successfully created.')}";
- else
- if @project.git_error?
location.href = "#{errors_githost_path}";
-else
:plain
$('.project_new_holder').show();
$("#new_project").replaceWith("#{escape_javascript(render('new_form'))}");

View file

@ -1,6 +1,6 @@
= render "project_head"
.project_edit_holder
%h3 Edit Project
%h3.page_title Edit Project
%hr
= render "projects/form"
%div.ajax_loader.hide

View file

@ -1,5 +1,5 @@
.project_new_holder
%h3
%h3.page_title
New Project
%hr
= render 'new_form'