Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/dashboard/activities.html.haml10
-rw-r--r--app/views/dashboard/index.html.haml3
-rw-r--r--app/views/layouts/_app_menu.html.haml1
-rw-r--r--app/views/projects/index.html.haml32
-rw-r--r--app/views/projects/show.js.haml7
5 files changed, 9 insertions, 44 deletions
diff --git a/app/views/dashboard/activities.html.haml b/app/views/dashboard/activities.html.haml
deleted file mode 100644
index 2b96acc60ec..00000000000
--- a/app/views/dashboard/activities.html.haml
+++ /dev/null
@@ -1,10 +0,0 @@
-- if @events.any?
- %div.dashboard_category
- %h3
- %span.ico.activities
- = link_to "Activities" , "#activities", :id => "activities"
-
- %hr
- = render @events
-- else
- %h3 Nothing here
diff --git a/app/views/dashboard/index.html.haml b/app/views/dashboard/index.html.haml
index 895c47124f0..b20fafca75c 100644
--- a/app/views/dashboard/index.html.haml
+++ b/app/views/dashboard/index.html.haml
@@ -62,9 +62,6 @@
%h3
%span.ico.activities
= link_to "Activities" , "#activities", :id => "activities"
- %strong.right
- = link_to dashboard_activities_path do
- Visit activities page →
%hr
.row
diff --git a/app/views/layouts/_app_menu.html.haml b/app/views/layouts/_app_menu.html.haml
index b96bdacc385..b9249b525b0 100644
--- a/app/views/layouts/_app_menu.html.haml
+++ b/app/views/layouts/_app_menu.html.haml
@@ -1,7 +1,6 @@
%nav.main_menu
= render "layouts/const_menu_links"
= link_to "Projects", projects_path, :class => "#{"current" if current_page?(projects_path)}"
- = link_to "Activities", dashboard_activities_path, :class => "#{"current" if current_page?(dashboard_activities_path)}"
= link_to dashboard_issues_path, :class => "#{"current" if current_page?(dashboard_issues_path)}", :id => "issues_slide" do
Issues
%span.count= current_user.assigned_issues.opened.count
diff --git a/app/views/projects/index.html.haml b/app/views/projects/index.html.haml
index e163851fd46..fee6363de09 100644
--- a/app/views/projects/index.html.haml
+++ b/app/views/projects/index.html.haml
@@ -1,22 +1,25 @@
- if @projects.any?
.row
- .span4
+ .span11
+ = render @events
+ .span5.right
%div.leftbar.ui-box
%h5
Projects
+ %small
+ (#{@projects.count})
- if current_user.can_create_project?
%span.right
= link_to new_project_path, :class => "btn very_small info" do
New Project
.content_list
- @projects.each do |project|
- = link_to project_path(project), :remote => true, :class => dom_class(project) do
+ = link_to project_path(project), :class => dom_class(project) do
%h4
%span.ico.project
- = truncate(project.name, :length => 22)
- .span12.right
- .show_holder.ui-box.padded
- .loading
+ = truncate(project.name, :length => 25)
+ %span.right
+ →
- else
%h3 Nothing here
@@ -31,20 +34,3 @@
New Project ยป
- else
If you will be added to project - it will be displayed here
-
-
-:javascript
- $(function(){
- $("a.project").live("ajax:before", function() {
- $(".show_holder").html("<div class='loading'>");
- $('a.project').removeClass("active");
- $(this).addClass("active");
- });
- $('a.project:first-child').trigger("click");
- });
-
-- if @projects.count == @limit
- :javascript
- $(function(){
- Pager.init(#{@limit});
- });
diff --git a/app/views/projects/show.js.haml b/app/views/projects/show.js.haml
deleted file mode 100644
index 132ebebf23f..00000000000
--- a/app/views/projects/show.js.haml
+++ /dev/null
@@ -1,7 +0,0 @@
-- if @project.repo_exists? && @project.has_commits?
- :plain
- $(".show_holder").html("#{escape_javascript(render(:partial => 'projects/show'))}");
-- else
- :plain
- $(".show_holder").html("#{escape_javascript(render(:template => 'projects/empty'))}");
-