#482 frontend: Show markdown code for status badge
Merged 10 months ago by msuchy. Opened 10 months 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>

            </dd>

          </dl>

+         <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>

        </div>

      </div>

  

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](...
</textarea>

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.

rebased onto 7419afc

10 months ago

Pull-Request has been merged by msuchy

10 months ago