Skip to content

Add a newer version notice in Collections (Legacy) #1456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _layouts/inner-page-parent-dropdown.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% include headertop.html %}
{% include headerbottom.html %}
{% if page.new-version %}<a class="new-version-notice" href="{{ page.new-version }}">This page has a new version.</a>{% endif %}

<div class="navigation-fade-screen"></div>

Expand Down
4 changes: 2 additions & 2 deletions _layouts/inner-page-parent.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% include headertop.html %} {% include headerbottom.html %}
{% if page.new-version %}<a class="new-version-notice" href="{{ page.new-version }}">This page has a new version.</a>{% endif %}

<div class="navigation-fade-screen"></div>

Expand All @@ -20,12 +21,11 @@ <h1>{{page.title}}</h1>
<ul class="result-container" id="result-container" style="display: none;"></ul>
</div>
</div>

</div>
</section>

{% comment %}Specific content from child layouts{% endcomment %} {{content}}

</main>

{% include footer.html %}
{% include footer.html %}
3 changes: 2 additions & 1 deletion _overviews/collections/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Arrays
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/arrays.html

num: 10

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Concrete Immutable Collection Classes
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/concrete-immutable-collection-classes.html

num: 8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Concrete Mutable Collection Classes
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/concrete-mutable-collection-classes.html

num: 9

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Conversions Between Java and Scala Collections
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/conversions-between-java-and-scala-collections.html

num: 17

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/creating-collections-from-scratch.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Creating Collections From Scratch
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/creating-collections-from-scratch.html

num: 16

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/equality.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Equality
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/creating-collections-from-scratch.html

num: 13

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Introduction
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/introduction.html

num: 1

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/iterators.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Iterators
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/iterators.html

num: 15

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Maps
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/maps.html

num: 7

Expand Down
2 changes: 1 addition & 1 deletion _overviews/collections/migrating-from-scala-27.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Migrating from Scala 2.7
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)

num: 18

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Mutable and Immutable Collections
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/overview.html

num: 2

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/performance-characteristics.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Performance Characteristics
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/performance-characteristics.html

num: 12

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/seqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: The sequence traits Seq, IndexedSeq, and LinearSeq
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/seqs.html

num: 5

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Sets
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/sets.html

num: 6

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Strings
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/strings.html

num: 11

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/trait-iterable.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Trait Iterable
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/trait-iterable.html

num: 4

Expand Down
2 changes: 1 addition & 1 deletion _overviews/collections/trait-traversable.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Trait Traversable
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)

num: 3

Expand Down
3 changes: 2 additions & 1 deletion _overviews/collections/views.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: Views
discourse: true

partof: collections
overview-name: Collections
overview-name: Collections (Scala 2.8 - 2.12)
new-version: /overviews/collections-2.13/views.html

num: 14

Expand Down
7 changes: 7 additions & 0 deletions _sass/layout/documentation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@
padding: 1px 5px;
}
}

a.new-version-notice {
display: block;
background: rgb(255, 255, 200);
font-size: large;
text-align: center;
}