#482 frontend: Show markdown code for status badge
Merged 2 years ago by msuchy. Opened 2 years ago by till.
copr/ till/copr markdown_badge  into  master

@@ -89,6 +89,12 @@ 

              <textarea class="form-control" rows="2" cols="50"><a href="{{ copr_url('coprs_ns.copr_package', copr, package_name=package.name, _external=True) }}"><img src="{{ copr_url('coprs_ns.copr_package_icon', copr, package_name=package.name, _external=True) }}" /></a></textarea>



+         <dl class="dl-horizontal">

+           <dt> Markdown Code: </dt>

+           <dd>

+             <textarea class="form-control" rows="2" cols="50">[![Copr build status]({{ copr_url('coprs_ns.copr_package_icon', copr, package_name=package.name, _external=True) }})]({{ copr_url('coprs_ns.copr_package', copr, package_name=package.name, _external=True) }})</textarea>

+           </dd>

+         </dl>




no initial comment

There is a lot of empty space in the textarea before the markdown code. It is because of the multiline <textarea>.

<textarea ...>
        [![Copr build status](...

You will probably have to shrink it to one line to fix it. Same way as it is done for the HTML link above.

<textarea ...>[![Copr build status]...</textarea>

Otherwise, I like this PR.

Thank you, I changed it.

Awesome, thank you!

rebased onto 7419afc

2 years ago

Pull-Request has been merged by msuchy

2 years ago