Skip to content
Snippets Groups Projects
Commit 627efddf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

migrated to bootstrap 2

parent 2bad798e
No related branches found
No related tags found
No related merge requests found
Showing
with 157 additions and 149 deletions
= form_for @user, :url => profile_update_path, :remote => true, :method => :put do |f|
%h3 Application theme
%hr
.clearfix
= label_tag do
= f.radio_button :theme_id, 1
Default
-#%div
%h3 Application theme
%hr
.clearfix
= label_tag do
= f.radio_button :theme_id, 1
Default
 
= label_tag do
= f.radio_button :theme_id, 2
Classic
%br
= label_tag do
= f.radio_button :theme_id, 2
Classic
%br
%h3 Code review
%hr
.row
%label.span4{:for => "user_dark_scheme_false"}
%center
%h4
= f.radio_button :dark_scheme, false
White code preview
= image_tag "white.png", :width => 210, :class => "styled_image"
%label.span4{:for => "user_dark_scheme_true"}
%center
%h4
= f.radio_button :dark_scheme, true
Dark code preview
= image_tag "dark.png", :width => 210, :class => "styled_image"
%label.span3{:for => "user_dark_scheme_false"}
.thumbnail
= image_tag "white.png", :width => 260, :class => "styled_image"
.caption
%h5
= f.radio_button :dark_scheme, false
White code preview
%label.span3{:for => "user_dark_scheme_true"}
.thumbnail
= image_tag "dark.png", :width => 260, :class => "styled_image"
.caption
%h5
= f.radio_button :dark_scheme, true
Dark code preview
 
:javascript
$(function(){
Loading
Loading
.row
.span8
%h3 Password
%hr
= form_for @user, :url => profile_password_path, :method => :put do |f|
.data
.alert-message.block-message.warning
%p After successfull password update you will be redirected to login page where you should login with new password
-if @user.errors.any?
.alert-message.block-message.error
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
.span6
.thumbnail
.caption
%h3 Password
%hr
= form_for @user, :url => profile_password_path, :method => :put do |f|
.data
.alert-message.block-message.warning
%p After successfull password update you will be redirected to login page where you should login with new password
-if @user.errors.any?
.alert-message.block-message.error
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
 
.clearfix
= f.label :password
.input= f.password_field :password
.clearfix
= f.label :password_confirmation
.input= f.password_field :password_confirmation
.actions
= f.submit 'Save', :class => "btn"
.clearfix
= f.label :password
.input= f.password_field :password
.clearfix
= f.label :password_confirmation
.input= f.password_field :password_confirmation
%hr
= f.submit 'Save', :class => "btn"
 
.span7.right
%h3
Private token
%span.cred.right
keep it in secret!
%hr
= form_for @user, :url => profile_reset_private_token_path, :method => :put do |f|
.data
.alert-message.block-message.warning
%p Private token used to access application resources without authentication.
.span6.right
.thumbnail
.caption
%h3
Private token
%span.cred.right
keep it in secret!
%hr
= form_for @user, :url => profile_reset_private_token_path, :method => :put do |f|
.data
.alert-message.block-message.warning
%p Private token used to access application resources without authentication.
%hr
%p * required for rss feed
%p.cgray
- if current_user.private_token
= text_field_tag "token", current_user.private_token
- else
You don`t have one yet. Click generate to fix it.
%hr
%p * required for rss feed
%p.cgray
- if current_user.private_token
= text_field_tag "token", current_user.private_token
- else
You don`t have one yet. Click generate to fix it.
.actions
- if current_user.private_token
= f.submit 'Reset', :confirm => "Are you sure?", :class => "btn"
- else
= f.submit 'Generate', :class => "btn"
- if current_user.private_token
= f.submit 'Reset', :confirm => "Are you sure?", :class => "btn"
- else
= f.submit 'Generate', :class => "btn"
 
.row
.span10
.span8
.profile_avatar_holder
= image_tag gravatar_icon(@user.email, 90), :class => "styled_image"
%h3
Loading
Loading
@@ -8,7 +8,7 @@
%small
= @user.email
.span6.right
.span4.right
%div
%div
%h5.cgray
Loading
Loading
@@ -23,45 +23,45 @@
%span= current_user.keys.count
%hr
 
= form_for @user, :url => profile_update_path, :method => :put do |f|
= form_for @user, :url => profile_update_path, :method => :put, :html => { :class => "edit_user form-horizontal" } do |f|
-if @user.errors.any?
%div.alert-message.block-message.error
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
.row
.span9
.clearfix
= f.label :name
.input
= f.text_field :name, :class => "xlarge"
.span7
.control-group
= f.label :name, :class => "control-label"
.controls
= f.text_field :name, :class => "input-xlarge"
%span.help-block Enter youre name, so people you know can recognize you.
.clearfix
= f.label :email
.input
= f.text_field :email, :class => "xlarge"
.control-group
= f.label :email, :class => "control-label"
.controls
= f.text_field :email, :class => "input-xlarge"
%span.help-block We also use email for avatar detection
.clearfix
= f.label :skype
.input= f.text_field :skype, :class => "xlarge"
.clearfix
= f.label :linkedin
.input= f.text_field :linkedin, :class => "xlarge"
.clearfix
= f.label :twitter
.input= f.text_field :twitter, :class => "xlarge"
.clearfix
= f.label :bio
.input
= f.text_area :bio, :rows => 6, :class => "xlarge", :maxlength => 250
.control-group
= f.label :skype, :class => "control-label"
.controls= f.text_field :skype, :class => "input-xlarge"
.control-group
= f.label :linkedin, :class => "control-label"
.controls= f.text_field :linkedin, :class => "input-xlarge"
.control-group
= f.label :twitter, :class => "control-label"
.controls= f.text_field :twitter, :class => "input-xlarge"
.control-group
= f.label :bio, :class => "control-label"
.controls
= f.text_area :bio, :rows => 6, :class => "input-xlarge", :maxlength => 250
%span.help-block About yourself in fewer than 250 characters.
.span7.right
.span5.right
%p.alert-message.block-message
%strong Tip:
You can change your avatar at gravatar.com
 
.actions
= f.submit 'Save', :class => "primary btn"
.form-actions
= f.submit 'Save', :class => "btn-primary btn"
 
-#= link_to "New project", new_project_path, :class => "btn small padded"
-#= link_to "New public key", new_key_path, :class => "btn small"
%ul.tabs
%ul.nav.nav-tabs
%li{ :class => "#{'active' if current_page?(project_path(@project)) }" }
= link_to project_path(@project), :class => "activities-tab tab" do
Show
Loading
Loading
- if @projects.any?
.row
.span11
.span8
= render @events
.span5.right
.span4.right
%div.leftbar.ui-box
%h5
Projects
Loading
Loading
= render "project_head"
.main_box
.top_box_content
%h3
= @project.name
%span.right
.alert.alert-info
.row
-#.span2
.back_link
= link_to projects_path do
← To projects list
.span7
.form-horizontal
.input-prepend
%span.add-on git clone
= text_field_tag :project_clone, @project.url_to_repo, :class => "one_click_select span5"
.span4.right
.right
- if can? current_user, :download_code, @project
= link_to "Download", archive_project_repository_path(@project), :class => "btn small padded"
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
Loading
Loading
@@ -12,18 +21,7 @@
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
Issue
.back_link
= link_to projects_path do
← To projects list
.middle_box_content
.input
.input-prepend
%span.add-on git clone
= text_field_tag :project_clone, @project.url_to_repo, :class => "xlarge one_click_select git_clone_url"
 
- if @project.description.present?
.bottom_box_content
.markdown= markdown @project.description
- unless @events.blank?
%br
%h5.cgray
Loading
Loading
= render "project_head"
 
- if can? current_user, :admin_team_member, @project
.alert-message.block-message
.alert.alert-info
= link_to new_project_team_member_path(@project), :class => "btn small right", :title => "New Team Member" do
New Team Member
%p Read more about project permissions #{link_to "here", help_permissions_path, :class => "vlink"}
%p
Read more about project permissions
%strong= link_to "here", help_permissions_path, :class => "vlink"
%p To open team member profile - click on avatar.
 
 
Loading
Loading
= render "repositories/branches_head"
 
.alert-message.block-message
.alert
%p Protected branches designed to prevent push for all except #{link_to "masters", help_permissions_path, :class => "vlink"}.
%p This ability allows:
%ul
Loading
Loading
@@ -11,7 +11,7 @@
 
 
- unless @branches.empty?
%table.zebra-striped
%table.table-striped
%thead
%tr
%th Name
Loading
Loading
Loading
Loading
@@ -4,14 +4,14 @@
.row
.span1.file_icon= image_tag(file.image? ? "file_img.png" : "file_txt.png")
.span2.mode_text= file.mode
.span7.file_name= name
.span4.right
.span5.file_name= name
.span3.right
= link_to "raw", blob_project_ref_path(@project, @ref, :path => params[:path]), :class => "right", :target => "_blank"
= link_to "history", project_commits_path(@project, :path => params[:path], :ref => @ref), :class => "right", :style => "margin-right:10px;"
- if file.text?
.view_file_content
- unless file.empty?
%div{:class => current_user.dark_scheme ? "black" : ""}
%div{:class => current_user.dark_scheme ? "black" : "white"}
:erb
<%= raw file.colorize %>
- else
Loading
Loading
%ul.tabs
%ul.nav.nav-tabs
%li
= form_tag switch_project_refs_path(@project), :method => :get, :class => "project-refs-form", :remote => true do
= select_tag "ref", grouped_options_refs, :onchange => "$(this.form).trigger('submit');", :class => "project-refs-select"
Loading
Loading
= render "commits/head"
%ul.pills
%ul.nav.nav-pills
%li{:class => ("active" if current_page?(project_repository_path(@project)))}
= link_to project_repository_path(@project) do
Recent
Loading
Loading
= render "repositories/branches_head"
- unless @branches.empty?
%table.zebra-striped.borders
%table.table-striped.borders
%tbody
- @branches.each do |branch|
= render "repositories/branch", :branch => branch
= render "commits/head"
- unless @tags.empty?
%table.zebra-striped.borders
%table.table-striped.borders
- @tags.each do |tag|
%tr
%td
Loading
Loading
Loading
Loading
@@ -2,8 +2,8 @@
.padded
= label_tag :search, "Looking for"
.input
= text_field_tag :search, params[:search],:placeholder => "issue 143", :class => "xxlarge"
= submit_tag 'Search', :class => "btn primary"
= text_field_tag :search, params[:search],:placeholder => "issue 143", :class => "input-xxlarge"
= submit_tag 'Search', :class => "btn btn-primary"
- if params[:search].present?
%br
%h3 Search results
Loading
Loading
Loading
Loading
@@ -11,5 +11,5 @@
.span3
= form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|
= f.select :project_access, options_for_select(UsersProject.access_roles, member.project_access), {}, :class => "medium project-access-select", :disabled => !allow_admin
- if @project.owner == user
%span.label Project Owner
- if @project.owner == user
%span.label Project Owner
Loading
Loading
@@ -15,7 +15,7 @@
&larr; To team list
%br
.row
.span8
.span6
%table.no-borders
%tr
%td Email
Loading
Loading
@@ -35,7 +35,7 @@
%tr
%td Bio
%td= user.bio
.span8
.span6
%table.no-borders
%tr
%td Member since
Loading
Loading
@@ -50,8 +50,9 @@
%hr
= render user.recent_events.limit(3)
- if can? current_user, :admin_project, @project
.actions
= link_to 'Remove from team', project_team_member_path(:project_id => @project, :id => @team_member.id), :confirm => 'Are you sure?', :method => :delete, :class => "btn danger"
.form-horizontal
.form-actions
= link_to 'Remove from team', project_team_member_path(:project_id => @project, :id => @team_member.id), :confirm => 'Are you sure?', :method => :delete, :class => "btn btn-danger"
 
:javascript
$(function(){
Loading
Loading
Loading
Loading
@@ -30,8 +30,8 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
t.integer "assignee_id"
t.integer "author_id"
t.integer "project_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "closed", :default => false, :null => false
t.integer "position", :default => 0
t.boolean "critical", :default => false, :null => false
Loading
Loading
@@ -44,8 +44,8 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
 
create_table "keys", :force => true do |t|
t.integer "user_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.text "key"
t.string "title"
t.string "identifier"
Loading
Loading
@@ -60,10 +60,10 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
t.integer "assignee_id"
t.string "title"
t.boolean "closed", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.text "st_commits", :limit => 2147483647
t.text "st_diffs", :limit => 2147483647
t.datetime "created_at"
t.datetime "updated_at"
t.text "st_commits", :limit => 4294967295
t.text "st_diffs", :limit => 4294967295
t.boolean "merged", :default => false, :null => false
end
 
Loading
Loading
@@ -84,8 +84,8 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
t.string "noteable_id"
t.string "noteable_type"
t.integer "author_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.integer "project_id"
t.string "attachment"
t.string "line_code"
Loading
Loading
@@ -98,8 +98,8 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
t.string "name"
t.string "path"
t.text "description"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "private_flag", :default => true, :null => false
t.string "code"
t.integer "owner_id"
Loading
Loading
@@ -122,8 +122,8 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
t.text "content"
t.integer "author_id", :null => false
t.integer "project_id", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.string "file_name"
t.datetime "expires_at"
end
Loading
Loading
@@ -156,8 +156,8 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.string "name"
t.boolean "admin", :default => false, :null => false
t.integer "projects_limit", :default => 10
Loading
Loading
@@ -176,16 +176,16 @@ ActiveRecord::Schema.define(:version => 20120408181910) do
create_table "users_projects", :force => true do |t|
t.integer "user_id", :null => false
t.integer "project_id", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.integer "project_access", :default => 0, :null => false
end
 
create_table "web_hooks", :force => true do |t|
t.string "url"
t.integer "project_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at"
t.datetime "updated_at"
end
 
create_table "wikis", :force => true do |t|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment