Commit e6ac1714 authored by Filipa Lacerda's avatar Filipa Lacerda

Styles html according to mockup

parent 1d3815f8
...@@ -480,6 +480,27 @@ a.deploy-project-label { ...@@ -480,6 +480,27 @@ a.deploy-project-label {
} }
} }
.project-template {
.project-templates-buttons {
i {
display: block;
font-size: 24px;
margin-bottom: 4px;
}
img {
display: block;
height: 24px;
margin: 0 auto 4px;
}
}
&:after {
content: "OR";
float: right;
}
}
.project-stats { .project-stats {
font-size: 0; font-size: 0;
text-align: center; text-align: center;
......
.col-sm-12.template-buttons
.btn-group.project-templates-buttons{ data: { toggle: "buttons" }}
%label.btn.active
%input{ type: "radio", autocomplete: "off", name: "project_templates" }
= icon('file-o')
Blank
- Gitlab::ProjectTemplate.all.each do |template| - Gitlab::ProjectTemplate.all.each do |template|
-# The title should be the value posted to the controller, a pretty name to print would be -# The title should be the value posted to the controller, a pretty name to print would be
-# template.name -# template.name
= template.title %label.btn
= image_tag(template.logo_path) %input{ type: "radio", autocomplete: "off", name: "project_templates" }
= image_tag(template.logo_path)
= template.title
= f.text_field :template_title, placeholder: "rails", class: "form-control", tabindex: 2, autofocus: true, required: true
...@@ -15,61 +15,68 @@ ...@@ -15,61 +15,68 @@
- if import_sources_enabled? - if import_sources_enabled?
%p %p
Create or Import your project from popular Git services Create or Import your project from popular Git services
.col-lg-9 .col-lg-9.js-toggle-container
= form_for @project, html: { class: 'new_project' } do |f| = form_for @project, html: { class: 'new_project' } do |f|
.project-template.js-toggle-container .row
.form_group.clearfix .col-lg-6
= f.label :template_project, class: 'label-light' do .project-template
Start from template .form_group.clearfix
.col-sm-12.import-buttons = f.label :template_project, class: 'label-light' do
= render 'project_templates', f: f Create from template
= link_to icon('question-circle'), help_page_path("public_access/public_access"), aria: { label: "What's included in a template?" }, title: "What's included in a template?", class: 'has-tooltip', data: { placement: 'top'}
- if import_sources_enabled? .col-sm-12.import-buttons
.project-import.js-toggle-container = render 'project_templates', f: f
.form-group.clearfix .col-lg-6
= f.label :visibility_level, class: 'label-light' do #the label here seems wrong - if import_sources_enabled?
Import project from .project-import
.col-sm-12.import-buttons .form-group.clearfix
%div = f.label :visibility_level, class: 'label-light' do #the label here seems wrong
- if github_import_enabled? Import project from
= link_to new_import_github_path, class: 'btn import_github' do .col-sm-12.import-buttons
= icon('github', text: 'GitHub') %div
%div - if github_import_enabled?
- if bitbucket_import_enabled? = link_to new_import_github_path, class: 'btn import_github' do
= link_to status_import_bitbucket_path, class: "btn import_bitbucket #{'how_to_import_link' unless bitbucket_import_configured?}" do = icon('github', text: 'GitHub')
= icon('bitbucket', text: 'Bitbucket') %div
- unless bitbucket_import_configured? - if bitbucket_import_enabled?
= render 'bitbucket_import_modal' = link_to status_import_bitbucket_path, class: "btn import_bitbucket #{'how_to_import_link' unless bitbucket_import_configured?}" do
%div = icon('bitbucket', text: 'Bitbucket')
- if gitlab_import_enabled? - unless bitbucket_import_configured?
= link_to status_import_gitlab_path, class: "btn import_gitlab #{'how_to_import_link' unless gitlab_import_configured?}" do = render 'bitbucket_import_modal'
= icon('gitlab', text: 'GitLab.com') %div
- unless gitlab_import_configured? - if gitlab_import_enabled?
= render 'gitlab_import_modal' = link_to status_import_gitlab_path, class: "btn import_gitlab #{'how_to_import_link' unless gitlab_import_configured?}" do
%div = icon('gitlab', text: 'GitLab.com')
- if google_code_import_enabled? - unless gitlab_import_configured?
= link_to new_import_google_code_path, class: 'btn import_google_code' do = render 'gitlab_import_modal'
= icon('google', text: 'Google Code') %div
%div - if google_code_import_enabled?
- if fogbugz_import_enabled? = link_to new_import_google_code_path, class: 'btn import_google_code' do
= link_to new_import_fogbugz_path, class: 'btn import_fogbugz' do = icon('google', text: 'Google Code')
= icon('bug', text: 'Fogbugz') %div
%div - if fogbugz_import_enabled?
- if gitea_import_enabled? = link_to new_import_fogbugz_path, class: 'btn import_fogbugz' do
= link_to new_import_gitea_url, class: 'btn import_gitea' do = icon('bug', text: 'Fogbugz')
= custom_icon('go_logo') %div
Gitea - if gitea_import_enabled?
%div = link_to new_import_gitea_url, class: 'btn import_gitea' do
- if git_import_enabled? = custom_icon('go_logo')
%button.btn.js-toggle-button.import_git{ type: "button" } Gitea
= icon('git', text: 'Repo by URL') %div
.import_gitlab_project.has-tooltip{ data: { container: 'body' } } - if git_import_enabled?
- if gitlab_project_import_enabled? %button.btn.js-toggle-button.import_git{ type: "button" }
= link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do = icon('git', text: 'Repo by URL')
= icon('gitlab', text: 'GitLab export') .import_gitlab_project.has-tooltip{ data: { container: 'body' } }
- if gitlab_project_import_enabled?
= link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do
= icon('gitlab', text: 'GitLab export')
.row
.col-lg-12
.js-toggle-content.hide .js-toggle-content.hide
= render "shared/import_form", f: f %hr
= render "shared/import_form", f: f
%hr.js-toggle-content.hide
.row .row
.form-group.col-xs-12.col-sm-6 .form-group.col-xs-12.col-sm-6
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment