Edgewall Software
Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13259 closed defect (fixed)

Missing <td> element in permission admin page

Reported by: Jun Omae Owned by: Ryan J Ollos
Priority: normal Milestone: 1.4.2
Component: rendering Version: 1.4
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Fixed empty tr elements on Permission Admin page.

Description

327             <tr class="even">
328               <td>user</td>
329               <td>
330                 <label>
331                   <!--! base64 makes it safe to use ':' as separator when passing
332                       both subject and action as one query parameter -->
333                   <span title="PERMISSION_GRANT">PERMISSION_GRANT</span>
334                 </label>
335               </td>
336             </tr>
337             <tr>        <===
338             </tr>       <===
339           </tbody>

Minor thing, we could remove many <!--! base64 makes it safe to use ... comment from rendered page.

315                 <label>
316                   <!--! base64 makes it safe to use ':' as separator when passing
317                       both subject and action as one query parameter -->
318                   <span title="WIKI_CREATE">WIKI_CREATE</span>
319                 </label>
320                 <label>
321                   <!--! base64 makes it safe to use ':' as separator when passing
322                       both subject and action as one query parameter -->
323                   <span title="WIKI_MODIFY">WIKI_MODIFY</span>
324                 </label>
325               </td>
326             </tr>

Attachments (0)

Change History (5)

comment:1 by Ryan J Ollos, 5 years ago

Internal Changes: modified (diff)

Proposed change:

  • trac/admin/templates/admin_perms.html

    diff --git a/trac/admin/templates/admin_perms.html b/trac/admin/templates/admin_perms.html
    index 75346c083..0a0ca0caf 100644
    a b  
    136136                <label>
    137137                  #   set invalid = action not in actions
    138138                  #   set has_perm = action in perm
    139                   <!--! base64 makes it safe to use ':' as separator when passing
    140                       both subject and action as one query parameter -->
    141139                  #   if can_revoke:
    142140                  <input type="checkbox" name="sel"
    143141                         class="trac-disable-determinant"
     
    155153              </td>
    156154            </tr>
    157155            # endfor
     156            # if not perms:
    158157            <tr>
    159               # if not perms:
    160158              <td colspan="2">${_("No permissions")}</td>
    161               # endif
    162159            </tr>
     160            # endif
    163161          </tbody>
    164162        </table>
    165163
     
    175173              <td>
    176174                # for subject in group_subjects:
    177175                <label>
    178                   <!--! base64 makes it safe to use ':' as separator when passing
    179                       both subject and action as one query parameter -->
    180176                  # if can_revoke:
    181177                  <input type="checkbox" name="sel"
    182178                         class="trac-disable-determinant"

comment:2 by Ryan J Ollos, 5 years ago

Owner: set to Ryan J Ollos
Status: newassigned

comment:3 by Ryan J Ollos, 5 years ago

Resolution: fixed
Status: assignedclosed

Committed to 1.4-stable in r17297, merged in r17298.

comment:4 by Ryan J Ollos, 5 years ago

Fixed another instance of empty tr in r17364, merged in r17365.

comment:5 by Ryan J Ollos, 5 years ago

Internal Changes: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.