Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Merged opf/openproject/refs/tags/v5.0.17 into opf/openproject-ce/rele…
Browse files Browse the repository at this point in the history
…ase/5.0
  • Loading branch information
openprojectci committed Apr 11, 2016
2 parents 8fb845c + ce68e65 commit 5cb1dee
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ GIT

GIT
remote: https://github.com/opf/openproject-translations.git
revision: 48de77103ac4ce2e20b26e3867c00d7053eb13b9
revision: a9056536ff7ba39af18de01fe38328fe42d130fd
branch: stable/5
specs:
openproject-translations (5.0.16)
openproject-translations (5.0.17)
crowdin-api (~> 0.4.0)
mixlib-shellout (~> 2.1.0)
rails (~> 4.2.3)
Expand Down
2 changes: 2 additions & 0 deletions app/assets/javascripts/tab_handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
// Responsible to hide the old selected tab and show the content
// of the currently selected tab.
function showTab(name, url) {
jQuery('div#content .tabs .a .position-label').hide();
jQuery('div#content .tabs #tab-' + name + ' .position-label').show();
jQuery('div#content .tab-content').hide();
jQuery('div.tabs a').removeClass('selected');
jQuery('#tab-content-' + name).show();
Expand Down
10 changes: 8 additions & 2 deletions app/assets/stylesheets/content/_simple_filters.sass
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,15 @@ $filters--border-color: $gray !default
max-width: 100%

.simple-filters--filter-name
flex-basis: 20%
flex-basis: 25%
max-width: 25%
padding-right: 0
margin-right: 1rem
overflow: hidden
text-overflow: ellipsis
.simple-filters--filter-value
flex-basis: 75%
flex-basis: 70%
max-width: 70%
// important for consistent padding between input and select fields
padding-right: 0.375rem

Expand Down
10 changes: 7 additions & 3 deletions app/helpers/accessibility_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@
#++

module AccessibilityHelper
def you_are_here_info(condition = true)
condition ?
"<span class = 'hidden-for-sighted'>#{l(:description_current_position)}</span>".html_safe :
def you_are_here_info(condition = true, disabled = nil)
if condition && !disabled
"<span style = 'display: block' class = 'position-label hidden-for-sighted'>#{l(:description_current_position)}</span>".html_safe
elsif condition && disabled
"<span style = 'display: none' class = 'position-label hidden-for-sighted'>#{l(:description_current_position)}</span>".html_safe
else
''
end
end

def empty_element_tag
Expand Down
2 changes: 1 addition & 1 deletion app/views/common/_tabs.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See doc/COPYRIGHT.rdoc for more details.
<ul>
<% tabs.each do |tab| %>
<li><%=
position_span = you_are_here_info(tab[:name] == selected_tab)
position_span = you_are_here_info(tab[:name], tab[:name] != selected_tab)
caption = case tab[:label]
when Proc
tab[:label].call
Expand Down

0 comments on commit 5cb1dee

Please sign in to comment.