Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b64857da

Přidáno uživatelem Ondřej Váně před téměř 4 roky(ů)

#3 Add link to catalogue to AP detail

- removed AP id from form
- AP name moved to the header
- url to AP catalogue moved to the header

Zobrazit rozdíly:

src/main/webapp/WEB-INF/templates/anti-pattern.html
25 25

  
26 26
<!-- Card for anti pattern details-->
27 27
<div class="card">
28
    <h3 class="card-header">Anti Pattern</h3>
29
    <div class="card-body">
28
    <!-- Card header -->
29
    <div>
30
        <div class="card-header">
31
            <div class="d-flex align-items-center">
32
                <h3 th:text="${antiPattern.printName}"></h3>
30 33

  
31
        <!-- Anti pattern id -->
32
        <div class="form-group">
33
            <label for="antiPatternId">Anti Pattern Id:</label>
34
            <input disabled type="text" class="form-control" id="antiPatternId" th:value="${antiPattern.id}">
35
        </div>
36
        <!-- ./Anti pattern id -->
34
                <!-- Anti pattern catalogue file name is filled -->
35
                <a th:if="${antiPattern ne null and antiPattern.catalogueFileName ne null}"
36
                   id="antiPatternCatalogueUrl"
37
                   th:href="${antiPattern.getFullCatalogueUrl()}"
38
                   target="_blank">&nbsp;View in catalogue
39
                </a>
40
                <!-- Anti pattern catalogue file name is filled -->
37 41

  
38
        <!-- Anti pattern name -->
39
        <div class="form-group">
40
            <label for="antiPatternName">Anti Pattern name:</label>
41
            <input disabled type="text" class="form-control" id="antiPatternName" th:value="${antiPattern.printName}">
42
                <!-- Anti pattern catalogue file name is NOT filled -->
43
                <del>
44
                    <a th:unless="${antiPattern ne null and antiPattern.catalogueFileName ne null}"
45
                       id="antiPatternCatalogueUrl"
46
                       target="_blank"
47
                       style="color: grey">&nbsp;View in catalogue
48
                    </a>
49
                </del>
50
            </div>
51
            <small th:unless="${antiPattern ne null and antiPattern.catalogueFileName ne null}"
52
                   style="color: grey"> This anti pattern is not occur in catalogue or anti pattern file name is it not
53
                filled in model class </small>
54
            <!-- ./Anti pattern catalogue file name is NOT filled -->
42 55
        </div>
43
        <!-- ./Anti pattern name -->
56
    </div>
57
    <!-- ./Card header -->
58

  
59
    <div class="card-body">
44 60

  
45 61
        <!-- Anti pattern description -->
46 62
        <div class="form-group">
......
50 66
        </div>
51 67
        <!-- ./Anti pattern description -->
52 68

  
53
        <!-- Anti pattern catalogue url if is filled in AntiPattern model class -->
54
        <div class="form-group">
55
            <label for="antiPatternCatalogueUrl">Software process Anti Patterns catalogue:</label>
56
            <br>
57

  
58
            <!-- Anti pattern catalogue file name is filled -->
59
            <a th:if="${antiPattern ne null and antiPattern.catalogueFileName ne null}"
60
               id="antiPatternCatalogueUrl"
61
               th:href="${antiPattern.getFullCatalogueUrl()}"
62
               th:text="${antiPattern.printName}"
63
               target="_blank">
64
            </a>
65
            <!-- ./Anti pattern catalogue file name is filled -->
66

  
67
            <!-- Anti pattern catalogue file name is NOT filled -->
68
            <del><a th:unless="${antiPattern ne null and antiPattern.catalogueFileName ne null}"
69
               id="antiPatternCatalogueUrl"
70
               th:text="${antiPattern.printName}"
71
               target="_blank"
72
               style="color: grey"
73
            ></a></del>
74
            <small th:unless="${antiPattern ne null and antiPattern.catalogueFileName ne null}"
75
                   style="color: grey"> This anti pattern is not occur in catalogue </small>
76
            <!-- ./Anti pattern catalogue file name is NOT filled -->
77
        </div>
78
        <!-- ./Anti pattern catalogue url if is filled in AntiPattern model class -->
79

  
80 69
        <!-- Anti pattern configuration form -->
81 70
        <h5>Anti Pattern configurations</h5>
82 71
        <div th:each="config : ${antiPattern.configurations}" class="form-group">

Také k dispozici: Unified diff