#108 porting alt.fedoraproject.org
Closed 4 months ago by codeblock. Opened 8 months ago by camelocadelo.
fedora-web/ camelocadelo/websites master  into  master

file modified
+3 -9
@@ -8,7 +8,6 @@ 

  import jinja2

  import os

  import yaml

- import re

  

  #FEDORA_LANGUAGES = { 'en' : 'English' , 'de': 'Deutsch'}

  
@@ -178,12 +177,8 @@ 

      global freeze_indexes

      freeze_indexes.add(name)

      def r():

-         # If requested routing under '/coreos/download/', render with '/coreos/download/index.html'

-         # and handle the requested tab view in frontend (sites/static/js/coreos-download.js)

-         # using the request url.

-         if (re.search("^coreos_download_.*$", name)):

-             return render_template(template or '/coreos/download/index.html')

          return render_template(template or path.strip('/') + '/index.html')

+         

      r.__name__ = name

      if freezing:

          # This is a bit hacky, but we want to generate index.html.langcode files
@@ -212,15 +207,14 @@ 

  export_route('server_download', '/server/download/')

  export_route('coreos', '/coreos/')

  export_route('coreos_download', '/coreos/download/')

- export_route('coreos_download_cloud_launchable', '/coreos/download/cloud_launchable/')

- export_route('coreos_download_metal_virtualized', '/coreos/download/metal_virtualized/')

- export_route('coreos_download_cloud_operators', '/coreos/download/cloud_operators/')

  export_route('silverblue', '/silverblue/')

  export_route('silverblue_download', '/silverblue/download/')

  export_route('iot', '/iot/')

  export_route('iot_download', '/iot/download/')

  export_route('security', '/security/')

  export_route('sponsors', '/sponsors/')

+ export_route('alt', '/alt/')

+ export_route('alt_download', '/alt/download/')

  

  # This is manually updated for now by calling:

  # python scripts/releases-json.py > static/releases.json

@@ -11,8 +11,11 @@ 

  {% elif edition == "iot" %}

    {% set logoimage = '<img src="/static/images/logo-inline-iot.png" alt="Fedora IoT Logo"/>' %}

    {% set activeclass = "active border-bottom border-fedora-purple border-width-3"%}

-   {% elif edition == "silverblue" %}

- {% set logoimage = '<img src="/static/images/logo-inline-silverblue.png" alt="Fedora Silverblue Logo"/>' %}

+ {% elif edition == "silverblue" %}

+   {% set logoimage = '<img src="/static/images/logo-inline-silverblue.png" alt="Fedora Silverblue Logo"/>' %}

+   {% set activeclass = "active border-bottom border-fedora-darkblue border-width-3"%}

+ {% elif edition == "alt" %}

+   {% set logoimage = '<img src="/static/images/rsz_1fedora-alt-logo.png" alt="Fedora Alt Logo"/>' %}

    {% set activeclass = "active border-bottom border-fedora-darkblue border-width-3"%}

  {% endif %}

  <div class="bg-light border-bottom">

@@ -2,6 +2,64 @@ 

    announcement_url: https://fedoramagazine.org/announcing-fedora-31

    announcement_release_number: 31

  

+   alt:

+     server:

+       pretty_name: Fedora Server

+       release_number: 31

+       rc_version: 1.9

+       download_override:

+         netinst-x86_64: default

+         standard_aarch64: default

+         netinst_aarch64: default

+         standard_ppc64le: default

+         netinst_ppc64le: default

+         standard_s390x: default

+         netinst_s390x: default

+     workstation:

+       pretty_name: Fedora Workstation

+       release_number: 31

+       rc_version: 1.9

+       download_override:

+         raw_aarch64: default

+     minimal:

+       pretty_name: Fedora minimal

+       release_number: 31

+       rc_version: 1.9

+       download_override:

+         raw_aarch64: default

+     everything: 

+       pretty_name: Everything

+       release_number: 31

+       rc_version: 1.9

+       download_override:

+         netinst_aarch64: default

+         netinst_ppc64le: default

+         netinst_s390x: default

+     cloud:

+       pretty_name: Fedora Cloud

+       release_number: 31

+       rc_version: 1.9

+       download_override:

+         qcow2_aarch64: default

+         qcow2_ppc64le: default

+         qcow2_s390x: default

+         cloud_raw_aarch64: default

+         cloud_raw_ppc64le: default

+         cloud_raw_s390x: default

+     container:

+       pretty_name: Fedora Container

+       release_number: 31

+       rc_version: 1.9

+       download_override:

+         base_aarch64: default

+         base_ppc64le: default

+         base_s390x: default

+ 

+ 

+ 

+ 

+ 

+ 

    editions:

      workstation:

        pretty_name: Fedora Workstation

@@ -0,0 +1,217 @@ 

+ {% extends "master_getfedora.html" %}

+ 

+ {% from "submenu.html" import submenu with context %}

+ {% from "export_regulations.html" import export_regulations %}

+ 

+ {% block title %}{% trans trimmed %}Download Fedora Workstation{% endtrans %}{% endblock %}

+ 

+ {% block content %}

+ {{submenu(edition="workstation", active="download")}}

+   <div class="bg-tranparent py-5">

+     <div class="container">

+       <div class="row align-items-center">

+         <div class="col-12">

+           <h1 class="font-weight-light">{% trans trimmed n=releaseinfo.ga.editions.workstation.release_number %}Download Fedora {{n}} Workstation.{% endtrans %}</h1>

+           <h5 class="font-weight-light">{% trans trimmed %}We're so glad you've decided to give Fedora Workstation a try. We know you'll love it.{% endtrans %}</h5>

+         </div>

+       </div>

+     </div>

+   </div>

+ 

+   <div class="bg-light border py-5">

+     <div class="container">

+       <div class="row">

+         <div class="col-12 col-md-6">

+           <div class="d-flex flex-column h-100">

+             <h3 class="font-weight-light">{% trans trimmed %}On Windows or MacOS?{% endtrans %}</h3>

+             <p>

+               {% trans trimmed %}

+               Get started by using <strong>Fedora Media Writer</strong>, which makes it super easy to give Fedora a try.

+               {% endtrans %}

+             </p>

+             <ul class="mt-auto list-group">

+               <li class="list-group-item d-flex align-items-center p-2">

+                 <div class="flex-grow-1">

+                   {% trans trimmed %}Fedora Media Writer{% endtrans %}

+                 </div>

+                 <div class="btn-group">

+                   <a class="btn btn-outline-fedora-blue" href="https://getfedora.org/fmw/FedoraMediaWriter-win32-{{releaseinfo.fmw.win.version}}.exe">

+                     <i class="fab fa-windows"></i> 

+                   </a>

+                   <a class="btn btn-outline-fedora-blue" href="https://getfedora.org/fmw/FedoraMediaWriter-osx-{{releaseinfo.fmw.osx.version}}.dmg">

+                     <i class="fab fa-apple"></i> 

+                   </a>

+                 </div>

+               </li>

+             </ul>

+           </div>

+         </div>

+         <div class="col-12 col-md-6 pt-4 pt-md-0">

+           <div class="d-flex flex-column h-100">

+             <h3 class="font-weight-light">{% trans trimmed %}On Linux or just want an ISO file?{% endtrans %}</h3>

+             <p>

+               {% trans trimmed link="https://docs.fedoraproject.org/en-US/quick-docs/creating-and-using-a-live-installation-image/index.html" %}

+               Not sure how to use this file? <a href="{{link}}">Learn here</a>.

+               {% endtrans %}

+             </p>

+             <ul class="mt-auto list-group">

+               {% if releaseinfo.ga.editions.workstation.download_override.live_x86_64 %}

+               <li class="list-group-item d-flex align-items-center p-2">

+                 <div class="flex-grow-1">

+                   {% trans trimmed n=releaseinfo.ga.editions.workstation.release_number %}Fedora {{n}}: x86_64 DVD ISO{% endtrans %}

+                 </div>

+                 <div class="btn-group">

+                   <a class="btn btn-outline-fedora-blue" href="{{dl(releaseinfo.ga.editions.workstation.download_override.live_x86_64, 'https://download.fedoraproject.org/pub/fedora/linux/releases/%d/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-%d-%s.iso' % (releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.rc_version))}}">

+                     {% trans trimmed %}Download{% endtrans %}

+                   </a>

+                 </div>

+               </li>

+               {% endif %}

+ 

+               {% if releaseinfo.beta.show and releaseinfo.beta.editions.workstation.download_override.live_x86_64 %}

+               <li class="list-group-item d-flex align-items-center p-2">

+                 <div class="flex-grow-1">

+                   {% trans trimmed n=releaseinfo.beta.editions.workstation.release_number %}

+                   Fedora {{n}}: x86_64 DVD ISO

+                   {% endtrans %}

+                   <span class="badge badge-primary">{% trans trimmed %}Beta!{% endtrans %}</span>

+                 </div>

+                 <div class="btn-group">

+                   <a class="btn btn-outline-fedora-blue" href="{{dl(releaseinfo.beta.editions.workstation.download_override.live_x86_64, 'https://download.fedoraproject.org/pub/fedora/linux/releases/test/%d_Beta/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-%d_Beta-%s.iso' % (releaseinfo.beta.editions.workstation.release_number, releaseinfo.beta.editions.workstation.release_number, releaseinfo.beta.editions.workstation.rc_version))}}">

+                     {% trans trimmed %}Download{% endtrans %}

+                   </a>

+                 </div>

+               </li>

+               {% endif %}

+ 

+             </ul>

+           </div>

+         </div>

+       </div>

+     </div>

+   </div>

+ 

+   <div class="bg-gray-200 py-5">

+     <div class="container">

+       <div class="row align-items-center">

+         <div class="col-12 col-lg-6 order-12 order-lg-1">

+           <h3 class="font-weight-light pb-4">

+             {% trans trimmed %}Learn more about Fedora Media Writer.{% endtrans %}

+           </h3>

+           <p class="font-weight-light">

+             {% trans trimmed %}

+             Getting going with Fedora is easier than ever.

+             All you need is a 2GB USB flash drive, and Fedora Media Writer.

+             {% endtrans %}

+           </p>

+           <p class="font-weight-light">

+             {% trans trimmed %}

+             Once Fedora Media Writer is installed, it will set up your flash drive

+             to run a "Live" version of Fedora Workstation, meaning that you can boot

+             it from your flash drive and try it out right away without making any

+             permanent changes to your computer. Once you are hooked, installing it

+             to your hard drive is a matter of clicking a few buttons<sup>*</sup>.

+             {% endtrans %}

+           </p>

+           <p class="muted font-italic">

+             <small>

+               {% trans trimmed %}

+               <sup>*</sup> Fedora requires a minimum of 20GB disk, 2GB RAM, to install and run successfully.

+               Double those amounts is recommended.

+               {% endtrans %}

+             </small>

+           </p>

+         </div>

+         <div class="col-12 col-lg-6 col-md-7 col-sm-9 px-5 order-1 order-lg-12 mx-auto">

+           <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-monitor-mediawriter.png" />

+         </div>

+       </div>

+     </div>

+   </div> 

+ 

+   <div class="bg-transparent py-5">

+     <div class="container">

+       <div class="row">

+         <div class="col-lg-6">

+             <h3 class="font-weight-light pb-4">{% trans trimmed %}We take security seriously.{% endtrans %}</h3>

+             <p class="font-weight-light">

+                 {% trans trimmed %}

+                 Once you have downloaded an image, be sure to verify it for both security and integrity.

+                 {% endtrans %}

+             </p>

+             <a href="{{url_for('security', lang_code=lang_code)}}">

+               {% trans trimmed %}

+               Verify your download.

+               {% endtrans %}

+             </a>

+         </div>

+         <div class="col-lg-6 pt-4 pt-lg-0">

+           <h3 class="font-weight-light pb-4">{% trans trimmed %}But wait! There's more.{% endtrans %}</h3>

+           <p class="font-weight-light">

+             {% trans trimmed %}

+             Need something a bit different? Check out our other Fedora

+             Workstation downloads <a href="https://alt.fedoraproject.org/">here</a>, featuring secondary architectures and

+             network-based installation images.

+             {% endtrans %}

+           </p>

+           <ul class="list-group">

+ 

+             {% if releaseinfo.ga.editions.workstation.download_override.live_i386 %}

+             <li class="list-group-item d-flex align-items-center">

+               <div class="flex-grow-1">

+                 {% trans trimmed n=releaseinfo.ga.editions.workstation.release_number %}

+                 Fedora {{n}}: 32-bit ISO

+                 {% endtrans %}

+               </div>

+               <div>

+                 <a class="btn btn-outline-primary btn-sm" href="{{dl(releaseinfo.ga.editions.workstation.download_override.live_i386, 'https://download.fedoraproject.org/pub/fedora-secondary/releases/%d/Workstation/i386/iso/Fedora-Workstation-Live-i386-%d-%s.iso' % (releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.rc_version))}}">{% trans trimmed %}Download{% endtrans %}</a>

+               </div>

+             </li>

+             {% endif %}

+ 

+             {% if releaseinfo.ga.editions.workstation.download_override.netinst_x86_64 %}

+             <li class="list-group-item d-flex align-items-center">

+               <div class="flex-grow-1">

+                 {% trans trimmed n=releaseinfo.ga.editions.workstation.release_number %}

+                 Fedora {{n}}: 64-bit network install image

+                 {% endtrans %}

+               </div>

+               <div>

+                 <a class="btn btn-outline-primary btn-sm" href="{{dl(releaseinfo.ga.editions.workstation.download_override.netinst_x86_64, 'https://download.fedoraproject.org/pub/fedora/linux/releases/%d/Workstation/x86_64/iso/Fedora-Workstation-netinst-x86_64-%d-%s.iso' % (releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.rc_version))}}">{% trans trimmed %}Download{% endtrans %}</a>

+               </div>

+             </li>

+             {% endif %}

+ 

+             {% if releaseinfo.ga.editions.workstation.download_override.netinst_i386 %}

+             <li class="list-group-item d-flex align-items-center">

+               <div class="flex-grow-1">

+                 {% trans trimmed n=releaseinfo.ga.editions.workstation.release_number %}

+                 Fedora {{n}}: 32-bit network install image

+                 {% endtrans %}

+               </div>

+               <div>

+                 <a class="btn btn-outline-primary btn-sm" href="{{dl(releaseinfo.ga.editions.workstation.download_override.netinst_i386, 'https://download.fedoraproject.org/pub/fedora-secondary/releases/%d/Workstation/i386/iso/Fedora-Workstation-netinst-i386-%d-%s.iso' % (releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.release_number, releaseinfo.ga.editions.workstation.rc_version))}}">{% trans trimmed %}Download{% endtrans %}</a>

+               </div>

+             </li>

+             {% endif %}

+ 

+             {% if releaseinfo.beta.show and releaseinfo.beta.editions.workstation.download_override.netinst_x86_64 %}

+             <li class="list-group-item d-flex align-items-center">

+               <div class="flex-grow-1">

+                 {% trans trimmed n=releaseinfo.beta.editions.workstation.release_number %}

+                 Fedora {{n}}: 64-bit network install image

+                 {% endtrans %}

+                 <span class="badge badge-primary">{% trans trimmed %}Beta!{% endtrans %}</span>

+               </div>

+               <div>

+                 <a class="btn btn-outline-primary btn-sm" href="{{dl(releaseinfo.beta.editions.workstation.download_override.netinst_x86_64, 'https://download.fedoraproject.org/pub/fedora/linux/releases/test/%d_Beta/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-%d_Beta-%s.iso' % (releaseinfo.beta.editions.workstation.release_number, releaseinfo.beta.editions.workstation.release_number, releaseinfo.beta.editions.workstation.rc_version))}}">{% trans trimmed %}Download{% endtrans %}</a>

+               </div>

+             </li>

+             {% endif %}

+           </ul>

+         </div>

+       </div>

+     </div>

+   </div>

+   {{export_regulations()}}

+   {% endblock %}

@@ -0,0 +1,173 @@ 

+ {% extends "master_getfedora.html" %}

+ 

+ {% from "feature_card.html" import feature_card with context %}

+ {% from "submenu.html" import submenu with context %}

+ 

+ {% block title %}{% trans trimmed %}Fedora Server{% endtrans %}{% endblock %}

+ 

+ {% block content %}

+ {{submenu(edition="alt", active="overview")}}

+ <div class="bg-tranparent py-5">

+   <div class="container">

+     <div class="row align-items-center justify-content-center">

+       <div class="col-12 col-md-7 col-lg-6 order-12 order-lg-1 text-center text-md-left">

+         <h1 class="font-weight-light">{% trans trimmed %}Fedora Alternative Downloads.{% endtrans %}</h1>

+         <h5 class="font-weight-light">{% trans trimmed %}Single central resource for locating alternative versions of Fedora.{% endtrans %}</h5>

+         <a class="btn btn btn-outline-fedora-green mt-2" href="{{url_for('alt_download', lang_code=lang_code)}}">{% trans trimmed %}Download Now{% endtrans %}</a>

+       </div>

+       <div class="col-9 col-md-5 col-lg-6 order-1 order-lg-12">

+         <img src="/static/images/g-laptop-boxes.png" class="w-100 pb-4 pb-lg-0"/>

+       </div>

+     </div>

+   </div>

+ </div>

+ <div class="bg-light border py-5">

+   <div class="container">

+     <div class="row align-items-center">

+       <div class="col-lg-8 col-12 mx-auto text-center">

+         <!-- <h3 class="font-weight-light pb-4">{% trans trimmed %}Leading Edge{% endtrans %}</h3> -->

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+           These Fedora downloads are either special-purpose - for testing, for specific architectures - or are more standard versions of Fedora in alternative formats such network installer format or formatted for bittorrent download.

+           {% endtrans %}

+         </h5>

+       </div>

+     </div>

+   </div>

+ </div>

+ 

+ <div class="bg-white py-5">

+   <div class="container py-3">

+     <div class="row align-items-center justify-content-center">

+       <div class="col-7 col-lg-4 col-md-5 col-sm-6 px-5">

+         <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-jigsaw.png" />

+       </div>

+       <div class="col-12 col-lg-8 col-md-7">

+         <h3 class="font-weight-light pb-4 text-center text-md-left">{% trans trimmed %}Network Installers{% endtrans %}</h3>

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+           These are very small images you can use to install Fedora over the network.

+           {% endtrans %}

+         </h5>

+         <p><a href="https://docs.pagure.org/modularity/">{% trans trimmed %}Learn more.{% endtrans %}</a></p>

+       </div>

+     </div>

+   </div> 

+ </div>

+ 

+ <div class="bg-light py-5">

+   <div class="container py-3">

+     <div class="row align-items-center justify-content-center">

+       <div class="col-12 col-lg-6 col-md-5 order-12 order-md-1">

+         <h3 class="font-weight-light pb-4 text-center text-md-left">{% trans trimmed %}Alternate Architectures{% endtrans %}</h3>

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+           These are additional architectures supported by Fedora beyond the standard set

+           {% endtrans %}

+         </h5>

+         <p><a href="{{url_for('alt_download', lang_code=lang_code)}}">{% trans trimmed %}Learn more.{% endtrans %}</a></p>

+       </div>

+       <div class="col-8 col-lg-6 col-md-7 col-sm-7 px-5 order-1 order-md-12">

+         <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-monitoring.png" />

+       </div>

+     </div>

+   </div> 

+ </div>

+ 

+ <div class="bg-white py-5">

+   <div class="container py-3">

+     <div class="row align-items-center justify-content-center">

+       <div class="col-7 col-lg-4 col-md-5 col-sm-6 px-5">

+         <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-identitymanagement.png" />

+       </div>

+       <div class="col-12 col-lg-8 col-md-7">

+         <h3 class="font-weight-light pb-4 text-center text-md-left">{% trans trimmed %}Cloud Base Images{% endtrans %}</h3>

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+           Compressed Cloud Base Images, Cloud Images for Openstack, Vagrant and Amazon Public Cloud.

+           {% endtrans %}

+         </h5>

+         <p><a href="https://www.freeipa.org/page/Main_Page">{% trans trimmed %}Learn more.{% endtrans %}</a></p>

+       </div>

+     </div>

+   </div> 

+ </div>

+ 

+ <div class="bg-gray-200 py-5">

+   <div class="container">

+     <div class="row align-items-center justify-content-center">

+       <div class="col-12 col-lg-6 order-12 order-lg-1">

+         <h3 class="font-weight-light pb-4 text-center text-lg-left">{% trans trimmed %}BitTorrent Downloads.{% endtrans %}</h3>

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+             Fedora offers many bittorrent downloads. Access our directory of torrents below:

+           {% endtrans %}

+         </h5>

+         <p><a href="https://torrent.fedoraproject.org/">{% trans trimmed %}Learn more.{% endtrans %}</a></p>

+       </div>

+       <div class="col-12 col-lg-6 col-md-7 col-sm-9 px-5 order-1 order-lg-12">

+         <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-monitor-overview.png" />

+       </div>

+     </div>

+   </div> <!--contatiner-->

+ </div>

+ 

+ <div class="bg-light border py-5">

+   <div class="container">

+     <div class="row align-items-center justify-content-center">

+       <div class="col-12 col-lg-6 col-md-7 col-sm-9 px-5">

+         <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-code-window.png" />

+       </div>

+       <div class="col-12 col-lg-6">

+         <h3 class="font-weight-light pb-4 text-center text-lg-left">{% trans trimmed %}Everything{% endtrans %}</h3>

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+           Choose from thousands of packages to customize your installation; requires a fast network connection.

+           {% endtrans %}

+         </h5>

+         <p><a href="https://docs.pagure.org/modularity/">{% trans trimmed %}Learn more.{% endtrans %}</a></p>

+ 

+       </div>

+     </div>

+   </div> <!--contatiner-->

+ </div>

+ 

+ <div class="bg-gray-200 py-5">

+   <div class="container">

+     <div class="row align-items-center justify-content-center">

+       

+       <div class="col-12 col-lg-6 order-12 order-lg-1">

+         <h3 class="font-weight-light pb-4 text-center text-lg-left">{% trans trimmed %}Testing Images.{% endtrans %}</h3>

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+           These are unreleased development versions of Fedora made available for testing the next official Fedora release.

+           {% endtrans %}

+         </h5>

+         <p><a href="https://docs.pagure.org/modularity/">{% trans trimmed %}Learn more.{% endtrans %}</a></p>

+       </div>

+       <div class="col-12 col-lg-6 col-md-9 col-sm-10 px-5 order-1 order-lg-12">

+         <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-laptop-boxes.png" />

+       </div>

+     </div>

+   </div> <!--contatiner-->

+ </div>

+ 

+ <div class="bg-light border py-5">

+   <div class="container">

+     <div class="row align-items-center justify-content-center">

+       <div class="col-12 col-lg-5 col-md-7 col-sm-9 px-5">

+         <img class="w-100 pb-4 pb-lg-0" src="/static/images/g-containers.png" />

+       </div>

+       <div class="col-12 col-lg-7">

+         <h3 class="font-weight-light pb-4 text-center text-lg-left">{% trans trimmed %}Rawhide{% endtrans %}</h3>

+         <h5 class="font-weight-light">

+           {% trans trimmed %}

+           Find out more about Rawhide, our ever-moving development version. Rawhide is targeted at advanced users, testers, and package maintainers.          {% endtrans %}

+         </h5>

+       </div>

+     </div>

+   </div> <!--contatiner-->

+ </div>

+ 

+ 

+ {% endblock %} 

\ No newline at end of file

@@ -155,7 +155,7 @@ 

        <div class="col-lg-4 mt-5">

          {{link_card(logo="/static/images/fedora-alt-logo.png",

                      description=_('The Fedora Alternative Downloads are either special-purpose - for testing, for specific architectures - or are more standard versions of Fedora in alternative formats such as network installer format or formatted for BitTorrent download.'),

-                     learnmorelink="https://alt.fedoraproject.org/"

+                     learnmorelink=url_for("alt", lang_code=lang_code)

          )}}

        </div>

      </div> <!--row-->

@@ -29,7 +29,7 @@ 

          <div class="col-12 col-lg-6">

            <h5 class="font-weight-light">{% trans trimmed %}Using the x86_64 Architecture?{% endtrans %}</h5>

            <ul class="list-group">

-             {% if releaseinfo.ga.editions.server.download_override.standard_x86_64 %}

+             {% if releaseinfo.ga..server.download_override.standard_x86_64 %}

              <li class="list-group-item d-flex align-items-center">

                <div class="flex-grow-1">

                  {% trans trimmed n=releaseinfo.ga.editions.server.release_number %}

empty or binary file added
empty or binary file added
empty or binary file added
empty or binary file added
@@ -20,6 +20,7 @@ 

    "aliyun": "Alibaba Cloud",

    "metal": {

      "raw.xz": "Raw",

+     "4k.raw.xz": "Raw (4k Native)",

      "iso": "ISO",

      "pxe": "PXE",

      "installer.iso": "Installer (ISO)",
@@ -33,14 +34,14 @@ 

  // innerText of tab button

  const tabInnerText = {

    "cloud_launchable": "Cloud Launchable",

-   "metal_virt": "Bare Metal & Virtualized",

+   "metal_virtualized": "Bare Metal & Virtualized",

    "cloud_operators": "For Cloud Operators"

  }

  // frequently used IDs

  const IdPool = {

    "cloud_launchable": "cloud-launchable",

-   "metal_virt": "metal-virt",

-   "cloud_operators": "cloud-operator"

+   "metal_virtualized": "metal-virtualized",

+   "cloud_operators": "cloud-operators"

  }

  function getMember(obj, member) {

    return (member in obj) ? obj[member] : null;
@@ -142,6 +143,8 @@ 

          const key = pair[0];

          const val = pair[1];

          if (val === e.target.innerText) {

+           const downloadPageUrl = window.location.href.match(/^.*\/coreos\/download/)[0];

+           history.pushState(null, null, `${downloadPageUrl}?tab=${key}&stream=${coreos_download_app.stream}`);

            const show_id = IdPool[key];

            id_list.map(id => document.getElementById(id).hidden = (id !== show_id));

            this.shownId = show_id;
@@ -154,7 +157,7 @@ 

        nav_cloud_launchable = h('li', { class: "nav-item col-4" }, [ nav_cloud_launchable_btn ]);

  

        server_icon = h('i', { class: "fas fa-server mr-2" })

-       nav_metal_virt_btn = h('button', { class: "nav-link col-12 h-100 overflow-hidden".concat(this.shownId === IdPool.metal_virt ? " active" : ""), attrs: { "data-toggle": "tab" }, on: { click: this.toggleHidden } }, [ server_icon, tabInnerText.metal_virt ]);

+       nav_metal_virt_btn = h('button', { class: "nav-link col-12 h-100 overflow-hidden".concat(this.shownId === IdPool.metal_virtualized ? " active" : ""), attrs: { "data-toggle": "tab" }, on: { click: this.toggleHidden } }, [ server_icon, tabInnerText.metal_virtualized ]);

        nav_metal_virt = h('li', { class: "nav-item col-4" }, [ nav_metal_virt_btn ]);

  

        cloud_upload_icon = h('i', { class: "fas fa-cloud-upload-alt mr-2" })
@@ -166,6 +169,7 @@ 

      },

      // Add dropdown options of streams

      getStreamName: function(h) {

+       const self = this;

        if (this.streamData === null) return;

        option_stable = h('option', { attrs: { value: "stable", selected: this.stream === "stable" ? "selected" : null }}, "stable");

        option_testing = h('option', { attrs: { value: "testing", selected: this.stream === "testing" ? "selected" : null }}, "testing");
@@ -173,7 +177,10 @@ 

          class: "mx-1",

          on: {

            change: function(e) {

+             const downloadPageUrl = window.location.href.match(/^.*\/coreos\/download/)[0];

+             const currentShownKey = Object.keys(IdPool).find(key => IdPool[key] === self.shownId);

              coreos_download_app.stream = e.target.value;

+             history.pushState(null, null, `${downloadPageUrl}?tab=${currentShownKey}&stream=${coreos_download_app.stream}`);

            }

          }

        }, [
@@ -273,8 +280,18 @@ 

          const release = getMember(artifacts[platform], "release");

          const formats = getMember(artifacts[platform], "formats");

          if (formats) {

+           prettyFormats = [];

+           // in the case where each individual format has a separate pretty

+           // name, we want the artifacts listed in alphabetical order

            for (var format in formats) {

-             const prettyPlatform = getPrettyPlatform(platform, format);

+               pretty = getPrettyPlatform(getPrettyPlatform(platform, format));

+               prettyFormats.push({format: format, pretty: pretty});

+           }

+           prettyFormats.sort(function(a, b) { return a.pretty.localeCompare(b.pretty); });

+           for (i = 0; i < prettyFormats.length; i++) {

+             const format = prettyFormats[i].format;

+             const prettyPlatform = prettyFormats[i].pretty;

+ 

              // XXX: the conditions to display the extension here are quickly

              // hacked in; if adding any further conditions this should be

              // handled elsewhere in a better organized structure.
@@ -332,24 +349,44 @@ 

      }

    },

    render: function(h) {

-     // Extracts the route under `/coreos/download/`

-     const route = window.location.pathname.replace(/\/.*\/coreos\/download\//, '').replace(/\/+$/, '');

-     if (route !== '') {

-       switch(route) {

+     const downloadPageUrl = window.location.href.match(/^.*\/coreos\/download/)[0];

+     searchParams = new URLSearchParams(window.location.search);

+     // switch to specified tab if `tab` parameter is set

+     if (searchParams.has('tab')) {

+       switch(searchParams.get('tab')) {

          case 'cloud_launchable':

            this.shownId = IdPool.cloud_launchable;

            break;

          case 'metal_virtualized':

-           this.shownId = IdPool.metal_virt;

+           this.shownId = IdPool.metal_virtualized;

            break;

          case 'cloud_operators':

            this.shownId = IdPool.cloud_operators;

            break;

          default:

-           // we shouldn't hit this since the routes are safe-guarded by `sites/getfedora.org/main.py`

            this.shownId = IdPool.cloud_launchable;

        }

+     } else {

+       searchParams.set('tab', 'cloud_launchable');

+     }

+     // switch to specified stream if `stream` parameter is set

+     if (searchParams.has('stream')) {

+       switch(searchParams.get('stream')) {

+         case 'stable':

+           this.stream = "stable";

+           break;

+         case 'testing':

+           this.stream = "testing";

+           break;

+         default:

+           this.stream = "stable";

+       }

+     } else {

+       searchParams.set('stream', 'stable');

      }

+     // Update the url with the parameters

+     history.pushState(null, null, `${downloadPageUrl}?${searchParams.toString()}`);

+ 

      var signature_sha256_verification_modal = this.getSignatureAndShaModal(h);

      var stream_select_container = h('div', { class: "pb-0 pt-3 mb-3" }, [ h('div', { class: "container" }, [ this.getStreamName(h), this.getNavbar(h) ]) ]);

      if (this.loading) {
@@ -564,7 +601,7 @@ 

        let virtualized_container = h('div', { class: "col-6" }, [ virtualizedTitle, verifyBlurb, virtualized ]);

  

        let cloud_launchable_container = h('div', { class: "col-12 py-2 my-2", attrs: { id: IdPool.cloud_launchable, hidden: this.shownId !== IdPool.cloud_launchable } }, [ cloudLaunchableTitle, cloudLaunchable ]);

-       let metal_virt_container = h('div', { class: "row col-12 py-2 my-2", attrs: { id: IdPool.metal_virt, hidden: this.shownId !== IdPool.metal_virt } }, [ bare_metal_container, virtualized_container ]);

+       let metal_virt_container = h('div', { class: "row col-12 py-2 my-2", attrs: { id: IdPool.metal_virtualized, hidden: this.shownId !== IdPool.metal_virtualized } }, [ bare_metal_container, virtualized_container ]);

        let cloud_operators_container = h('div', { class: "col-12 py-2 my-2", attrs: { id: IdPool.cloud_operators, hidden: this.shownId !== IdPool.cloud_operators } }, [ cloudTitle, verifyBlurb, cloud ]);

  

        return h('div', {}, [

Current pull request contains new overview page for getfedora.org/alt and changes release.yaml configuration file.

Hello! Thank you for your contribution. It sincerely means a lot to us that you considered working with Fedora Websites as your Outreachy internship project. Although we have picked another intern for this internship period, we are honored to have you on board.

The Fedora Project is a large project with a multitude of ways to engage in the community and contribute. We'd love to see you remain active in the community, either in Websites or any other area of the project. It's an amazing way to meet awesome people, gain real-world experience with guidance from long-term contributors, and your contributions help an awesome open-source project. Plus, it looks good on any resume/CV. If you're interested, please see this page: https://fedoraproject.org/wiki/Join

Thank you once again, and welcome to Fedora!

Pull-Request has been closed by codeblock

4 months ago