-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c03c055
commit 5657626
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/io/jenkins/plugins/designlibrary/Banner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
|
||
@Extension | ||
public class Banner extends UISample { | ||
@Override | ||
public String getDisplayName() { | ||
return "Banner"; | ||
} | ||
|
||
@Override | ||
public String getIconFileName() { | ||
return "symbol-information-circle-outline plugin-ionicons-api"; | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
25 changes: 25 additions & 0 deletions
25
src/main/resources/io/jenkins/plugins/designlibrary/Banner/index.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:s="/lib/samples"> | ||
<s:sample> | ||
<div class="jdl-leading-paragraph"> | ||
Banners are a handy way to display small snippets of text and actions. | ||
</div> | ||
<div class="jdl-component-group"> | ||
<div class="jdl-component-sample jdl-component-sample--full-width jdl-component-sample--gridless"> | ||
<div class="alert alert-info"> | ||
Hello world | ||
</div> | ||
<div class="alert alert-warning"> | ||
Hello world | ||
</div> | ||
<div class="alert alert-danger"> | ||
Hello world | ||
</div> | ||
<div class="alert alert-success jenkins-!-margin-bottom-0"> | ||
Hello world | ||
</div> | ||
</div> | ||
<s:code language="xml" file="index.jelly" /> | ||
</div> | ||
</s:sample> | ||
</j:jelly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="alert alert-info"> | ||
Hello world | ||
</div> | ||
<div class="alert alert-warning"> | ||
Hello world | ||
</div> | ||
<div class="alert alert-danger"> | ||
Hello world | ||
</div> | ||
<div class="alert alert-success"> | ||
Hello world | ||
</div> |