Remove obselete class '-short'

pull/5337/head
Henriette Dinger 8 years ago
parent 0be5812099
commit 98d8880a6f
  1. 8
      app/views/repositories/_revisions.html.erb
  2. 8
      app/views/wiki/history.html.erb
  3. 4
      app/views/work_packages/_list_simple.html.erb
  4. 6
      app/views/workflows/_form.html.erb
  5. 4
      frontend/app/components/wp-fast-table/builders/cell-builder.ts
  6. 2
      frontend/app/components/wp-fast-table/builders/details-link-builder.ts
  7. 2
      frontend/app/components/wp-fast-table/builders/rows/hierarchy-rows-builder.ts
  8. 2
      frontend/app/components/wp-inline-create/inline-create-row-builder.ts

@ -46,7 +46,7 @@ See doc/COPYRIGHT.rdoc for more details.
</caption>
<thead>
<tr>
<th class="-short">
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span aria-describedby="revision-id--description">
@ -110,14 +110,14 @@ See doc/COPYRIGHT.rdoc for more details.
<% line_num = 1 %>
<% revisions.each do |changeset| %>
<tr class="changeset">
<td class="id -short">
<td class="id">
<%= link_to_revision(changeset, project) %>
</td>
<td class="checkbox -short">
<td class="checkbox">
<%= label_tag "cb-#{line_num}", t(:description_compare_from) + ' ' + t(:label_changeset), class: 'hidden-for-sighted' %>
<%= radio_button_tag('rev', changeset.identifier, (line_num==1), id: "cb-#{line_num}", onclick: "jQuery('#cbto-#{line_num+1}').attr('checked', true);") if show_diff && (line_num < revisions.size) %>
</td>
<td class="checkbox -short">
<td class="checkbox">
<%= label_tag "cbto-#{line_num}", t(:description_compare_to) + ' ' + t(:label_changeset), class: 'hidden-for-sighted' %>
<%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), id: "cbto-#{line_num}", onclick: "if (jQuery('#cb-#{line_num}').attr('checked')) {jQuery('#cb-#{line_num-1}').attr('checked', true)}") if show_diff && (line_num > 1) %>
</td>

@ -49,7 +49,7 @@ See doc/COPYRIGHT.rdoc for more details.
</caption>
<thead>
<tr>
<th class="-short">
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span aria-describedby="wiki-id--description">
@ -115,14 +115,14 @@ See doc/COPYRIGHT.rdoc for more details.
<% line_num = 1 %>
<% @versions.each do |ver| %>
<tr class="wiki-page-version">
<td class="id -short"><%= link_to h(ver.version), action: 'show', id: @page, project_id: @page.project, version: ver.version %></td>
<td class="checkbox -short">
<td class="id"><%= link_to h(ver.version), action: 'show', id: @page, project_id: @page.project, version: ver.version %></td>
<td class="checkbox">
<% if show_diff && (line_num < @versions.size) %>
<label for="<%="cb-#{line_num}"%>" class="hidden-for-sighted"><%= t(:description_compare_from) + ' ' + t(:label_version) + " " + h(ver.version.to_s) %></label>
<%= radio_button_tag('version', ver.version, (line_num==1), id: "cb-#{line_num}", onclick: "jQuery(#'cbto-#{line_num+1}').attr('checked', true);") %>
<% end %>
</td>
<td class="checkbox -short">
<td class="checkbox">
<% if show_diff && (line_num > 1) %>
<label for="<%="cbto-#{line_num}"%>" class="hidden-for-sighted"><%= t(:description_compare_to) + ' ' + t(:label_version) + " " + h(ver.version.to_s) %></label>
<%= radio_button_tag('version_from', ver.version, (line_num==2), id: "cbto-#{line_num}") %>

@ -39,7 +39,7 @@ See doc/COPYRIGHT.rdoc for more details.
</colgroup>
<thead>
<tr>
<th class="-short">
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
@ -80,7 +80,7 @@ See doc/COPYRIGHT.rdoc for more details.
<tbody>
<% for work_package in work_packages %>
<tr id="work_package-<%= h(work_package.id) %>" class="hascontextmenu <%= work_package_css_classes(work_package) %>">
<td class="id -short">
<td class="id">
<%= check_box_tag("ids[]", work_package.id, false, style: 'display:none;') %>
<%= link_to_work_package(work_package, id_only: true) %>
</td>

@ -36,7 +36,7 @@ See doc/COPYRIGHT.rdoc for more details.
</colgroup>
<thead>
<tr>
<th class="-short"></th>
<th></th>
<th><div class="generic-table--empty-header"></div></th>
<th colspan="<%= @statuses.length%>">
<div class="generic-table--sort-header-outer -border">
@ -54,7 +54,7 @@ See doc/COPYRIGHT.rdoc for more details.
</thead>
<tbody>
<tr>
<td class="-no-border -short">
<td class="-no-border">
<span class="workflow-table--turned-header">
<%=l(:label_current_status)%>
</span>
@ -72,7 +72,7 @@ See doc/COPYRIGHT.rdoc for more details.
</tr>
<% for old_status in @statuses %>
<tr>
<td class="-no-border -border-right -short"></td>
<td class="-no-border -border-right"></td>
<td class="workflow-table--current-status -border-right">
<%= link_to_function(icon_wrapper('icon-context icon-checkmark',"#{l(:label_check_uncheck_all_in_row)}"), "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",
class: 'no-decoration-on-hover',

@ -28,10 +28,6 @@ export class CellBuilder {
container.classList.add(editCellContainer);
const displayElement = this.buildDisplayElement(workPackage, name);
if (name === 'id') {
td.classList.add('-short');
}
container.appendChild(displayElement);
td.appendChild(container);

@ -23,7 +23,7 @@ export class DetailsLinkBuilder {
public build(workPackage:WorkPackageResource):HTMLElement {
// Append details button
let td = document.createElement('td');
td.classList.add(detailsLinkTdClass, 'hide-when-print', '-short');
td.classList.add(detailsLinkTdClass, 'hide-when-print');
let detailsLink = this.uiStatebuilder.linkToDetails(
workPackage.id,

@ -240,7 +240,7 @@ export class HierarchyRowsBuilder extends PlainRowsBuilder {
);
td.appendChild(link);
td.classList.add('-short', 'hierarchy-row--id-cell');
td.classList.add('hierarchy-row--id-cell');
}
tr.appendChild(td);

@ -76,7 +76,7 @@ export class InlineCreateRowBuilder extends SingleRowBuilder {
protected buildCancelButton() {
const td = document.createElement('td');
td.classList.add('wp-table--cancel-create-td', '-short');
td.classList.add('wp-table--cancel-create-td');
td.innerHTML = `
<a

Loading…
Cancel
Save