Skip to content

Commit

Permalink
Better naming for OBS colors in Bootstrap
Browse files Browse the repository at this point in the history
Renamed the text-package class to mimic what Bootstrap does.

Co-authored-by: David Kang <dkang@suse.com>
  • Loading branch information
Moises Deniz Aleman and David Kang committed Sep 4, 2018
1 parent 02b7c3b commit 4e11cc8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/api/app/assets/stylesheets/webui2/texts.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.text-package {
.text-obs-yellow {
color: $obs_yellow;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.row
.col-2.pl-2
- if update[1] == :package
%i.fa.fa-archive.fa-2x.text-package.pt-2{ title: 'Package' }
%i.fa.fa-archive.fa-2x.text-obs-yellow.pt-2{ title: 'Package' }
- else
%i.fa.fa-cubes.fa-2x.text-info.pt-2{ title: 'Project' }
.col-10.pl-0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Branch package
%li.list-inline-item
= link_to(package_submit_request_dialog_path(project: @project, package: @package, revision: @revision), remote: true, class: 'nav-link') do
%i.fas.fa-share-square.text-package
%i.fas.fa-share-square.text-obs-yellow
Submit package
- if User.current.can_modify?(@package)
%li.list-inline-item
Expand All @@ -38,7 +38,7 @@
- if @services.present?
%li.list-inline-item
= link_to(package_trigger_services_path(package: @package, project: @project), method: :post, class: 'nav-link') do
%i.fas.fa-project-diagram.text-package
%i.fas.fa-project-diagram.text-obs-yellow
Trigger services
%li.list-inline-item
= link_to(request_add_role_dialog_path(project: @project, package: @package), remote: true, class: 'nav-link') do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
title: "Binaries for #{result.repository}")
%td.arch
- if !(repository && repository.architectures.pluck(:name).include?(result.architecture))
%i.fas.fa-clock.text-package{ title: 'This result is outdated' }
%i.fas.fa-clock.text-obs-yellow{ title: 'This result is outdated' }
- else
= webui2_repo_status_icon(result.state, result.details)
= result.architecture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
Files Changed
%li.nav-item
= link_to(package_show_path(@project, @package, rev: commit['rev']), class: 'nav-link') do
%i.fas.fa-folder-open.text-package
%i.fas.fa-folder-open.text-obs-yellow
Browse Source

0 comments on commit 4e11cc8

Please sign in to comment.