Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d6de8206

Přidáno uživatelem stepanekp před téměř 3 roky(ů)

#27 No project/anti-pattern message added

Zobrazit rozdíly:

src/main/webapp/WEB-INF/templates/index.html
31 31
        <div class="row">
32 32
            <div class="col">
33 33
                <!-- Table for selecting projects -->
34
                <table class="table">
34
                <table th:if="${not #lists.isEmpty(query.projects)}" class="table">
35 35
                    <thead>
36 36
                    <tr>
37 37
                        <th scope="col">#</th>
......
62 62
                    </tr>
63 63
                    </tbody>
64 64
                </table>
65
                <div th:unless="${not #lists.isEmpty(query.projects)}" class="alert alert-danger" role="alert">
66
                    There are no projects to analyze!
67
                </div>
65 68
                <!-- ./Table for selecting projects -->
66 69
            </div>
67 70
            <div class="col">
68 71
                <!-- Table for selecting anti patterns -->
69
                <table class="table">
72
                <table th:if="${not #lists.isEmpty(query.antiPatterns)}" class="table">
70 73
                    <thead>
71 74
                    <tr>
72 75
                        <th scope="col">#</th>
......
97 100
                    </tr>
98 101
                    </tbody>
99 102
                </table>
103
                <div th:unless="${not #lists.isEmpty(query.antiPatterns)}" class="alert alert-danger" role="alert">
104
                    There are no anti-patterns to detect!
105
                </div>
100 106
                <!-- ./Table for selecting anti patterns -->
101 107
            </div>
102 108
        </div>
......
120 126

  
121 127
    <!-- Container for analyze button -->
122 128
    <div class="analyze-button-container">
123
        <button id="analyzeButton" type="submit" class="btn btn-primary btn-lg btn-block" onclick="showProgressBar()">Detect</button>
129
        <button id="analyzeButton" type="submit" class="btn btn-primary btn-lg btn-block" onclick="showProgressBar()" th:disabled="${#lists.isEmpty(query.projects) or #lists.isEmpty(query.antiPatterns)}">Detect</button>
124 130
    </div>
125 131
    <!-- ./Container for analyze button -->
126 132

  

Také k dispozici: Unified diff