#419 [frontend] add quick_enable.html flavor template
Merged 5 years ago by praiskup. Opened 5 years ago by praiskup.
Unknown source quick_enable_flavor  into  master

@@ -24,6 +24,7 @@

  %staticdir/copr_logo.png                        \

  %staticdir/css/copr-flavor.css                  \

  %templatedir/project_info.html                  \

+ %templatedir/quick_enable.html                  \

  %templatedir/user_meta.html                     \

  %templatedir/welcome.html                       \

  %templatedir/contact_us.html

@@ -134,16 +134,7 @@

  

      {% if not config.LAYOUT_OVERVIEW_HIDE_QUICK_ENABLE %}

      <div class="panel panel-default">

-       <div class="panel-heading">

-         <h3 class="panel-title"> Quick Enable </h3>

-       </div>

-       <div class="panel-body">

-         <div class="well well-sm">

-           dnf copr enable {{ copr_name(copr) }}

-         </div>

-         <a href="https://docs.pagure.org/copr.copr/how_to_enable_repo.html#how-to-enable-repo" target="_blank">

-           <small><span class="pficon pficon-info"></span> More info about enabling Copr repositories</small></a>

-       </div>

+       {% include 'quick_enable.html' %}

      </div>

      {% endif %}

  

@@ -0,0 +1,12 @@

+ {% from "_helpers.html" import copr_name %}

+ 

+ <div class="panel-heading">

+   <h3 class="panel-title"> Quick Enable </h3>

+ </div>

+ <div class="panel-body">

+   <div class="well well-sm">

+     $ dnf copr enable {{ copr_name(copr) }}

+   </div>

+   <a href="https://docs.pagure.org/copr.copr/how_to_enable_repo.html#how-to-enable-repo" target="_blank">

+     <small><span class="pficon pficon-info"></span> More info about enabling Copr repositories</small></a>

+ </div>

Since we have [1] change on the way, it would be nice to be able
to show the Quick Enable window in other instances, too.

https://github.com/rpm-software-management/dnf-plugins-core/pull/253

Note: no flavor version bump, we already bumped it in this release

It might be a good idea to do:

{% from "_helpers.html" import copr_name %}

in the quick-enable template or just use copr.full_name instead.

rebased onto a801b6eb81c9ea4d366f2a7d34349b8442db751b

5 years ago

rebased onto 90c289681836442a8d21e27681ed157197e97d98

5 years ago

rebased onto 3f638f5

5 years ago

Pull-Request has been merged by praiskup

5 years ago