Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add banner page #318

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/main/java/io/jenkins/plugins/designlibrary/Banner.java
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 {
}
}

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>
12 changes: 12 additions & 0 deletions src/main/webapp/Banner/index.jelly
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>