]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Simplify browser bugs inline shortcode
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 5 Feb 2019 19:59:01 +0000 (21:59 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 13 Mar 2019 17:22:59 +0000 (19:22 +0200)
site/content/docs/4.3/browser-bugs.md

index 70b26cf3e8e8053ecbcb78faea38c145b1438b9a..0607a91fde99eea68e561c55491ffa136344b786 100644 (file)
@@ -15,17 +15,20 @@ See also:
 * [Mozilla bug 1230801: Fix the issues that affect Bootstrap](https://bugzilla.mozilla.org/show_bug.cgi?id=1230801)
 * [WebKit bug 159753: [meta] Issues affecting Bootstrap](https://bugs.webkit.org/show_bug.cgi?id=159753)
 
+
+{{< bug.inline >}}
+{{- $type := .Get "type" | default "bug" -}}
+{{- $data := .Get "data" | default "browser-bugs" -}}
 <table class="bd-browser-bugs table table-bordered table-hover">
   <thead>
     <tr>
       <th>Browser(s)</th>
-      <th>Summary of bug</th>
-      <th>Upstream bug(s)</th>
+      <th>Summary of {{ $type }}</th>
+      <th>Upstream issue(s)</th>
       <th>Bootstrap issue(s)</th>
     </tr>
   </thead>
   <tbody>
-    {{< bug.inline >}}
     {{- range (index $.Site.Data $data) }}
     <tr>
       <td>{{ .browser | chomp }}</td>
@@ -34,9 +37,9 @@ See also:
       <td>{{ partial "bugify" .origin }}</td>
     </tr>
     {{- end }}
-    {{< /bug.inline >}}
   </tbody>
 </table>
+ {{< /bug.inline >}}
 
 # Most wanted features
 
@@ -44,25 +47,4 @@ There are several features specified in Web standards which would allow us to ma
 
 We publicly list these "most wanted" feature requests here, in the hopes of expediting the process of getting them implemented.
 
-<table class="bd-browser-bugs table table-bordered table-hover">
-  <thead>
-    <tr>
-      <th>Browser(s)</th>
-      <th>Summary of feature</th>
-      <th>Upstream issue(s)</th>
-      <th>Bootstrap issue(s)</th>
-    </tr>
-  </thead>
-  <tbody>
-    {{< feat.inline >}}
-    {{ range (index $.Site.Data "browser-features") }}
-    <tr>
-      <td>{{ .browser }}</td>
-      <td>{{ .summary | markdownify }}</td>
-      <td>{{ partial "bugify" .upstream_bug }}</td>
-      <td>{{ partial "bugify" .origin }}</td>
-    </tr>
-    {{ end }}
-    {{< /feat.inline >}}
-  </tbody>
-</table>
+{{< bug.inline data="browser-features" type="feature" />}}