Skip to content

Commit

Permalink
Change visibility of sources, tips and addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Mar 5, 2019
1 parent 440fded commit ccca388
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/widgets/orbit.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="orbit orbit--white" role="region" aria-label="{{caption}}" data-orbit>
<div class="{{orbit_class}}" role="region" aria-label="{{caption}}" data-orbit>
<ul class="orbit-container">
<button class="orbit-previous" aria-label="previous"><span class="show-for-sr">{{labels.previous}}</span>&#9664;</button>
<button class="orbit-next" aria-label="next"><span class="show-for-sr">{{labels.next}}</span>&#9654;</button>
Expand Down
7 changes: 5 additions & 2 deletions utils/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,20 @@ def __init__(
self,
caption: str,
orbits: List[OrbitItem],
labels: dict = None
labels: dict = None,
orbit_class = 'orbit'
):
if labels is None:
labels = {}
self.labels = ChainMap(self.default_labels, labels)
self.caption = caption
self.orbits = orbits
self.orbit_class = orbit_class

def get_context(self):
return {
'caption': self.caption,
'labels': self.labels,
'orbits': self.orbits
'orbits': self.orbits,
'orbit_class': self.orbit_class
}

0 comments on commit ccca388

Please sign in to comment.