--------------------------------------------------------------------------------
/src/main/resources/com/terma/jenkins/plugins/ajaxlistview/Messages.properties:
--------------------------------------------------------------------------------
1 | AjaxListView.DisplayName=Ajax List View
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 |
3 | # Mobile Tools for Java (J2ME)
4 | .mtj.tmp/
5 |
6 | # Package Files #
7 | *.jar
8 | *.war
9 | *.ear
10 |
11 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
12 | hs_err_pid*
13 |
--------------------------------------------------------------------------------
/src/main/resources/com/terma/jenkins/plugins/ajaxlistview/AjaxListView/newViewDetail.properties:
--------------------------------------------------------------------------------
1 | blurb=Standard List View which support update by AJAX without full page refresh. \
2 | Shows items in a simple list format. You can choose which jobs are to be displayed in which view.
3 |
--------------------------------------------------------------------------------
/src/main/webapp/js/engine.js:
--------------------------------------------------------------------------------
1 | jQuery(document).ready(function () {
2 |
3 | function reloadJobs() {
4 | console.log("start load jobs data...");
5 | jQuery.ajax({
6 | url: "ajax",
7 | cache: false,
8 | dataType: "html"
9 | }).done(function (html) {
10 | jQuery("#projectstatus").remove();
11 | jQuery("#iconBar").before(html);
12 | console.log("jobs loaded");
13 | });
14 | }
15 |
16 | window.setInterval(function () {
17 | reloadJobs();
18 | }, 5000);
19 |
20 | reloadJobs();
21 | });
--------------------------------------------------------------------------------
/src/main/resources/com/terma/jenkins/plugins/ajaxlistview/AjaxListView/main.jelly:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/com/terma/jenkins/plugins/ajaxlistview/AjaxListView.java:
--------------------------------------------------------------------------------
1 | package com.terma.jenkins.plugins.ajaxlistview;
2 |
3 | import hudson.Extension;
4 | import hudson.model.ListView;
5 | import hudson.model.ViewDescriptor;
6 | import hudson.model.ViewGroup;
7 | import org.kohsuke.stapler.DataBoundConstructor;
8 |
9 | public class AjaxListView extends ListView {
10 |
11 | @DataBoundConstructor
12 | public AjaxListView(String name) {
13 | super(name);
14 | }
15 |
16 | public AjaxListView(String name, ViewGroup owner) {
17 | super(name, owner);
18 | }
19 |
20 | @Extension
21 | public static final class DescriptorImpl extends ViewDescriptor {
22 |
23 | @Override
24 | public String getDisplayName() {
25 | return Messages.AjaxListView_DisplayName();
26 | }
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | AJAX List View Jenkins Plugin
2 | ===================
3 |
4 | [](https://travis-ci.org/terma/ajax-list-view-jenkins-plugin)
5 |
6 | Simple and small alternative for default Jenkins List View. This Plugin support same functionality and supports auto refresh by **AJAX each 5 sec**. Example on screenshot:
7 |
8 | 
9 |
10 | How to install
11 | ==
12 |
13 | * Download latest version of plugin for [page](https://github.com/terma/ajax-list-view-jenkins-plugin/releases)
14 | * Open your Jenkins and [install](https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Howtoinstallplugins)
15 |
16 | How to use
17 | ==
18 |
19 | * Just create new Ajax List View
20 |
21 | 
22 |
23 | * Configure it by selecting which jobs to display
24 |
25 | Thx
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 terma
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/src/main/resources/com/terma/jenkins/plugins/ajaxlistview/AjaxListView/ajax.jelly:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |