diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-04-01 23:11:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-08 16:18:12 +0100 |
commit | 12782678073b1605cc282a0a89e4ebb2e10a9be8 (patch) | |
tree | 4b55af3803cb6446426cf2e2f4b748baaf808b0e /bitbake/lib/toaster/toastergui/templates/package_detail_base.html | |
parent | 961f6226fa8019a7492ee40fdba18c5916065001 (diff) | |
download | poky-12782678073b1605cc282a0a89e4ebb2e10a9be8.tar.gz |
bitbake: toaster: Make sure layer branch only shows when not empty
In the recipe details and package details pages, the layer branch
definition list elements should only show when the branch field in
the database is populated. If the branch field is empty, we don't
show them.
The patch also removes all unnecessary data-toggle and
data-original-title attributes.
[YP #6152]
(Bitbake rev: 72adcadb931519f803dad7488544767241561fb7)
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/package_detail_base.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/package_detail_base.html | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/package_detail_base.html b/bitbake/lib/toaster/toastergui/templates/package_detail_base.html index 5888513486..cd015d3555 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_detail_base.html +++ b/bitbake/lib/toaster/toastergui/templates/package_detail_base.html | |||
@@ -57,7 +57,7 @@ | |||
57 | <dl> | 57 | <dl> |
58 | <dt> | 58 | <dt> |
59 | Size | 59 | Size |
60 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The size of the package"></i> | 60 | <i class="icon-question-sign get-help" title="The size of the package"></i> |
61 | </dt> | 61 | </dt> |
62 | <dd> | 62 | <dd> |
63 | {% comment %} | 63 | {% comment %} |
@@ -74,7 +74,7 @@ | |||
74 | 74 | ||
75 | <dt> | 75 | <dt> |
76 | License | 76 | License |
77 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The license under which this package is distributed"></i> | 77 | <i class="icon-question-sign get-help" title="The license under which this package is distributed"></i> |
78 | </dt> | 78 | </dt> |
79 | <dd>{{package.license}}</dd> | 79 | <dd>{{package.license}}</dd> |
80 | 80 | ||
@@ -83,14 +83,14 @@ | |||
83 | # problemse are resolved. | 83 | # problemse are resolved. |
84 | <dt> | 84 | <dt> |
85 | License files | 85 | License files |
86 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the license files that apply to the package"></i> | 86 | <i class="icon-question-sign get-help" title="Path to the license files that apply to the package"></i> |
87 | </dt> | 87 | </dt> |
88 | <dd></dd> | 88 | <dd></dd> |
89 | {% endcomment %} | 89 | {% endcomment %} |
90 | 90 | ||
91 | <dt> | 91 | <dt> |
92 | Recipe | 92 | Recipe |
93 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The name of the recipe building this package"></i> | 93 | <i class="icon-question-sign get-help" title="The name of the recipe building this package"></i> |
94 | </dt> | 94 | </dt> |
95 | <dd> | 95 | <dd> |
96 | {% if package.recipe_id > 0 %} | 96 | {% if package.recipe_id > 0 %} |
@@ -102,13 +102,13 @@ | |||
102 | 102 | ||
103 | <dt> | 103 | <dt> |
104 | Recipe version | 104 | Recipe version |
105 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The version of the recipe building this package"></i> | 105 | <i class="icon-question-sign get-help" title="The version of the recipe building this package"></i> |
106 | </dt> | 106 | </dt> |
107 | <dd>{{package.recipe.version}}</dd> | 107 | <dd>{{package.recipe.version}}</dd> |
108 | 108 | ||
109 | <dt> | 109 | <dt> |
110 | Layer | 110 | Layer |
111 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The name of the layer providing the recipe that builds this package"></i> | 111 | <i class="icon-question-sign get-help" title="The name of the layer providing the recipe that builds this package"></i> |
112 | </dt> | 112 | </dt> |
113 | <dd> | 113 | <dd> |
114 | {{package.recipe.layer_version.layer.name}} | 114 | {{package.recipe.layer_version.layer.name}} |
@@ -122,21 +122,22 @@ | |||
122 | {% endcomment %} | 122 | {% endcomment %} |
123 | {% endif %} | 123 | {% endif %} |
124 | </dd> | 124 | </dd> |
125 | 125 | {% if package.recipe.layer_version.branch %} | |
126 | <dt> | 126 | <dt> |
127 | Layer branch | 127 | Layer branch |
128 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git branch of the layer providing the recipe that builds this package"></i> | 128 | <i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe that builds this package"></i> |
129 | </dt> | 129 | </dt> |
130 | <dd>{{package.recipe.layer_version.branch}}</dd> | 130 | <dd>{{package.recipe.layer_version.branch}}</dd> |
131 | {% endif %} | ||
131 | <dt> | 132 | <dt> |
132 | Layer commit | 133 | Layer commit |
133 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git commit of the layer providing the recipe that builds this package"></i> | 134 | <i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe that builds this package"></i> |
134 | </dt> | 135 | </dt> |
135 | 136 | ||
136 | <dd class="iscommit">{{package.recipe.layer_version.commit}}</dd> | 137 | <dd class="iscommit">{{package.recipe.layer_version.commit}}</dd> |
137 | <dt> | 138 | <dt> |
138 | Layer directory | 139 | Layer directory |
139 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the layer providing the recipe that builds this package"></i> | 140 | <i class="icon-question-sign get-help" title="Path to the layer providing the recipe that builds this package"></i> |
140 | </dt> | 141 | </dt> |
141 | <dd><code>{{package.recipe.layer_version.layer.local_path}}</code></dd> | 142 | <dd><code>{{package.recipe.layer_version.layer.local_path}}</code></dd> |
142 | </dl> | 143 | </dl> |