Lists restyled, blue link colors added

This commit is contained in:
Dmitriy Zaporozhets 2012-02-11 23:22:33 +02:00
parent bc3735004c
commit cc1ba255d6
22 changed files with 125 additions and 82 deletions

View file

@ -1,17 +1,14 @@
%li
.row
.span12
.entry
= link_to project_commit_path(@project, :id => commit.id) do
%p
%code= commit.id.to_s[0..10]
–
= image_tag gravatar_icon(commit.author_email), :class => "", :width => 16
= truncate(commit.safe_message, :length => 50)
%li.wll
.right.span2
= link_to "Browse Code", tree_project_ref_path(@project, commit.id), :class => "btn small right"
= link_to project_commit_path(@project, :id => commit.id) do
%p
%code= commit.id.to_s[0..10]
–
= image_tag gravatar_icon(commit.author_email), :class => "", :width => 16
= truncate(commit.safe_message, :length => 50)
%span.right.cgray
= time_ago_in_words(commit.committed_date)
ago
.span2
= link_to "Browse Code", tree_project_ref_path(@project, commit.id), :class => "btn small"
%span.right.cgray
= time_ago_in_words(commit.committed_date)
ago

View file

@ -1,9 +1,9 @@
- @issues.each do |issue|
.entry
.wll
= link_to [issue.project, issue] do
%p
%strong
= issue.project.name
%span.label= issue.project.name
–
Issue #
= issue.id

View file

@ -1,9 +1,9 @@
- @merge_requests.each do |merge_request|
.entry
.wll
= link_to [merge_request.project, merge_request] do
%p
%strong
= merge_request.project.name
%span.label= merge_request.project.name
–
Merge Request #
= merge_request.id

View file

@ -1,6 +1,6 @@
= render "repositories/head"
- if can? current_user, :admin_project, @project
.alert-message.block-message.info
.alert-message.block-message
Deploy keys allow read-only access to repository.
= link_to new_project_deploy_key_path(@project), :class => "btn small", :title => "New Deploy Key" do
Add Deploy Key

View file

@ -1,15 +1,15 @@
= render "repositories/head"
- if can? current_user, :admin_project, @project
.alert-message.block-message.info
.alert-message.block-message
Post receive hooks for binding events when someone push to repository.
= link_to new_project_hook_path(@project), :class => "btn small", :title => "New Web Hook" do
Add Post Receive Hook
%ul.unstyled
- @hooks.each do |hook|
%li
%a.update-item{:href => project_hook_path(@project, hook)}
%li.wll
= link_to project_hook_path(@project, hook) do
= hook.url
.alert-message.block-message.info

View file

@ -1,13 +1,4 @@
%li.wll{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(issue.project, issue) }
= image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
%span.update-author
assigned to
%strong= link_to_issue_assignee(issue)
- if issue.critical
%span.label.important critical
- if issue.today?
%span.label.success today
.right
- if can? current_user, :write_issue, issue
- if issue.closed
@ -18,6 +9,15 @@
= link_to 'Edit', edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true
-#- if can?(current_user, :admin_issue, @project) || issue.author == current_user
= link_to 'Remove', [issue.project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "danger btn small delete-issue", :id => "destroy_issue_#{issue.id}"
= image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
%span.update-author
assigned to
%strong= link_to_issue_assignee(issue)
- if issue.critical
%span.label.important critical
- if issue.today?
%span.label.success today
= link_to project_issue_path(issue.project, issue) do

View file

@ -1,7 +1,8 @@
%li.entry
%li.wll
= link_to key_path(key) do
%strong= key.title
%span.right.cgray
Added
= time_ago_in_words(key.created_at)
ago
%p
%strong= key.title
%span.right.cgray
Added
= time_ago_in_words(key.created_at)
ago

View file

@ -1,6 +1,6 @@
%aside.projects
- if current_user.can_create_project?
.alert-message.block-message.info
.alert-message.block-message
You can create at least
= current_user.projects_limit
projects. Click on button to add a new one
@ -9,7 +9,7 @@
New Project »
- if current_user.is_admin?
.alert-message.block-message.info
.alert-message.block-message
You have administrator privilegies. You can configure application following this button:
.alert-actions
= link_to admin_root_path, :class => "btn small", :title => "Admin" do

View file

@ -1,5 +1,5 @@
- @activities.each do |update|
.entry
.wll
= link_to dashboard_feed_path(@project, update) do
- if update.kind_of? Note
%p

View file

@ -1,8 +1,8 @@
- commit = update
.entry
.wll
= link_to project_commits_path(@project, :ref => commit.head.name) do
%p
%strong
%strong.label
= commit.head.name
%br
%code= commit.id.to_s[0..10]

View file

@ -21,7 +21,7 @@
= time_ago_in_words(@activities.first.commit.committed_date)
ago to
= link_to project_commits_path(@project, :ref => @activities.first.head.name), :class => "visible_link" do
= @activities.first.head.name
%span.label= @activities.first.head.name
%h4.cgray
Recent Branches

View file

@ -1,17 +1,17 @@
= render "head"
- unless @tags.empty?
- @tags.each do |tag|
.row
.span7
.entry
= tag.name
%code= tag.commit.id.to_s[0..10]
%span.update-author.right
= time_ago_in_words(tag.commit.committed_date)
ago
.span3
- if can? current_user, :download_code, @project
= link_to "Download", archive_project_repository_path(@project, :ref => tag.name), :class => "btn small"
= link_to "Commits", project_commits_path(@project, :ref => tag.name), :class => "btn small"
%ul.unstyled
- @tags.each do |tag|
%li.wll
.span3.right
- if can? current_user, :download_code, @project
= link_to "Download", archive_project_repository_path(@project, :ref => tag.name), :class => "btn small"
= link_to "Commits", project_commits_path(@project, :ref => tag.name), :class => "btn small"
= tag.name
%code= tag.commit.id.to_s[0..10]
%span.update-author.right
= time_ago_in_words(tag.commit.committed_date)
ago
- else
%h3 No tags