Feature #42603 » 0001-Add-alerts-help.patch
app/assets/stylesheets/wiki_syntax.css | ||
---|---|---|
72 | 72 |
.syntaxhl .s1 { background-color: #fff0f0 } |
73 | 73 | |
74 | 74 |
span.more_info { font-weight: normal; } |
75 | ||
76 |
.markdown-alert { |
|
77 |
border-left: 4px solid; |
|
78 |
padding-left: 10px; |
|
79 |
margin-left: 10px; |
|
80 |
} |
|
81 |
.markdown-alert-title { |
|
82 |
font-weight: bold; |
|
83 |
} |
|
84 |
.markdown-alert-note { border-color: #169; } |
|
85 |
.markdown-alert-note .markdown-alert-title { color: #1e40af; } |
app/assets/stylesheets/wiki_syntax_detailed.css | ||
---|---|---|
63 | 63 |
.syntaxhl .o { color: #333333 } |
64 | 64 |
.syntaxhl .s2 { background-color: #fff0f0 } |
65 | 65 |
.syntaxhl .si { background-color: #eeeeee } |
66 | ||
67 | ||
68 |
.markdown-alert { |
|
69 |
border-left: 4px solid; |
|
70 |
padding-left: 10px; |
|
71 |
margin-left: 20px; |
|
72 |
} |
|
73 |
.markdown-alert-title { |
|
74 |
font-weight: bold; |
|
75 |
} |
|
76 |
.markdown-alert-tip { border-color: #5db651; } |
|
77 |
.markdown-alert-tip .markdown-alert-title { color: #005f00; } |
|
78 |
.markdown-alert-important { border-color: #800080; } |
|
79 |
.markdown-alert-important .markdown-alert-title { color: #4b006e; } |
|
80 |
.markdown-alert-caution { border-color: #c22; } |
|
81 |
.markdown-alert-caution .markdown-alert-title { color: #880000; } |
|
82 |
.markdown-alert-warning { border-color: #e4bc4b; } |
|
83 |
.markdown-alert-warning .markdown-alert-title { color: #a7760c; } |
|
84 |
.markdown-alert-note { border-color: #169; } |
|
85 |
.markdown-alert-note .markdown-alert-title { color: #1e40af; } |
app/views/help/wiki_syntax/common_mark/en/wiki_syntax_common_mark.html.erb | ||
---|---|---|
81 | 81 |
<th></th><td>HTML is <del>not</del> <u>allowed</u>.</td><td>HTML is <del>not</del> <u>allowed</u>.</td> |
82 | 82 |
</tr> |
83 | 83 | |
84 |
<tr><th colspan="3">Alerts <span class="more_info">(<a href="<%= help_wiki_syntax_path(:detailed, anchor: "16") %>" target="_blank">more</a>)</span></th></tr> |
|
85 |
<tr><th></th><td>> [!NOTE]<br>> You can use alerts like [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], and [!CAUTION].</td><td> |
|
86 |
<div class="markdown-alert markdown-alert-note"> |
|
87 |
<p class="markdown-alert-title">Note</p> |
|
88 |
<p>You can use alerts like [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], and [!CAUTION].</p> |
|
89 |
</div> |
|
90 |
</td></tr> |
|
91 | ||
84 | 92 |
</table> |
85 | 93 | |
86 | 94 |
<p><a href="<%= help_wiki_syntax_path(:detailed) %>" onclick="window.open('<%= help_wiki_syntax_path(:detailed) %>', '', ''); return false;">More Information</a></p> |
app/views/help/wiki_syntax/common_mark/en/wiki_syntax_detailed_common_mark.html.erb | ||
---|---|---|
27 | 27 |
<li><a href='#12'>Macros</a></li> |
28 | 28 |
<li><a href='#13'>Code highlighting</a></li> |
29 | 29 |
<li><a href='#15'>Raw HTML</a></li> |
30 |
<li><a href='#16'>Alerts</a></li> |
|
30 | 31 |
</ul> |
31 | 32 | |
32 | 33 |
<h2><a name="2" class="wiki-page"></a>Links</h2> |
... | ... | |
369 | 370 |
float |
370 | 371 |
</code></pre> |
371 | 372 | |
373 |
<h2><a name="16" class="wiki-page"></a>Alerts</h2> |
|
374 | ||
375 |
<p> |
|
376 |
<dl> |
|
377 |
<dt><code>NOTE</code></dt> |
|
378 |
<dd> |
|
379 |
<pre><code>> [!NOTE]<br>> Wiki page edits are preserved as history, allowing you to restore previous versions if needed.</code></pre> |
|
380 |
<div class="markdown-alert markdown-alert-note"> |
|
381 |
<p class="markdown-alert-title">Note</p> |
|
382 |
<p>Wiki page edits are preserved as history, allowing you to restore previous versions if needed.</p> |
|
383 |
</div> |
|
384 |
</dd> |
|
385 |
<dt><code>TIP</code></dt> |
|
386 |
<dd> |
|
387 |
<pre><code>> [!TIP]<br>> To quickly review the update history of an issue, use the "History" tab for convenient access.</code></pre> |
|
388 |
<div class="markdown-alert markdown-alert-tip"> |
|
389 |
<p class="markdown-alert-title">Tip</p> |
|
390 |
<p>To quickly review the update history of an issue, use the "History" tab for convenient access.</p> |
|
391 |
</div> |
|
392 |
</dd> |
|
393 |
<dt><code>WARNING</code></dt> |
|
394 |
<dd> |
|
395 |
<pre><code>> [!WARNING]<br>> Deleting an issue is a permanent action. Be certain it is truly necessary before proceeding.</code></pre> |
|
396 |
<div class="markdown-alert markdown-alert-warning"> |
|
397 |
<p class="markdown-alert-title">Warning</p> |
|
398 |
<p>Deleting an issue is a permanent action. Be certain it is truly necessary before proceeding.</p> |
|
399 |
</div> |
|
400 |
</dd> |
|
401 |
<dt><code>IMPORTANT</code></dt> |
|
402 |
<dd> |
|
403 |
<pre><code>> [!IMPORTANT]<br>> Changing role permissions can affect user access across all projects, so be mindful of potential impacts.</code></pre> |
|
404 |
<div class="markdown-alert markdown-alert-important"> |
|
405 |
<p class="markdown-alert-title">Important</p> |
|
406 |
<p>Changing role permissions can affect user access across all projects, so be mindful of potential impacts.</p> |
|
407 |
</div> |
|
408 |
</dd> |
|
409 |
<dt><code>CAUTION</code></dt> |
|
410 |
<dd> |
|
411 |
<pre><code>> [!CAUTION]<br>> When installing plugins, make sure to verify compatibility. Version differences can cause unexpected behavior.</code></pre> |
|
412 |
<div class="markdown-alert markdown-alert-caution"> |
|
413 |
<p class="markdown-alert-title">Caution</p> |
|
414 |
<p>When installing plugins, make sure to verify compatibility. Version differences can cause unexpected behavior.</p> |
|
415 |
</div> |
|
416 |
</dd> |
|
417 |
</dl> |
|
418 |
</p> |
|
419 | ||
372 | 420 |
</body> |
373 | 421 |
</html> |