Files @ 158ef33603b8
Branch filter:

Location: kallithea/rhodecode/templates/bookmarks/bookmarks_data.html - annotation

Bradley M. Kuhn
Add mousetrap.js file from Mousetrap 1.4.5, under the Apache license.

The file was download and verified via these commands:
$ git clone https://github.com/ccampbell/mousetrap.git
$ cd mousetrap; git checkout 1.4.5

The file in that repository named mousetrap.js is exactly the same one that
appeared in RhodeCode 2.2.5 in changeset c8d3c0d61d95.

The mousetrap.js states clearly that it is licensed under Apache-2.0.
%if c.repo_bookmarks:
   <div id="table_wrap" class="yui-skin-sam">
    <table id="bookmarks_data">
    <thead>
        <tr>
            <th class="left">Raw name</th> ##notranslation
            <th class="left">${_('Name')}</th>
            <th class="left">Raw date</th> ##notranslation
            <th class="left">${_('Date')}</th>
            <th class="left">${_('Author')}</th>
            <th class="left">Raw rev</th> ##notranslation
            <th class="left">${_('Revision')}</th>
            <th class="left">${_('Compare')}</th>
        </tr>
    </thead>
    %for cnt,book in enumerate(c.repo_bookmarks.items()):
        <tr class="parity${cnt%2}">
            <td>${book[0]}</td>
            <td>
                <span class="logbooks">
                    <span class="booktag">${h.link_to(book[0],
                    h.url('files_home',repo_name=c.repo_name,revision=book[1].raw_id))}</span>
                </span>
            </td>
            <td>${book[1]._timestamp}</td>
            <td><span class="tooltip" title="${h.tooltip(h.age(book[1].date))}">${h.fmt_date(book[1].date)}</span></td>
            <td title="${book[1].author}">${h.person(book[1].author)}</td>
            <td>${book[1].revision}</td>
            <td>
              <div>
                  <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=book[1].raw_id)}">r${book[1].revision}:${h.short_id(book[1].raw_id)}</a></pre>
              </div>
            </td>
            <td>
                <input class="branch-compare" type="radio" name="compare_org" value="${book[0]}"/>
                <input class="branch-compare" type="radio" name="compare_other" value="${book[0]}"/>
            </td>
        </tr>
    %endfor
    </table>
    </div>
%else:
    ${_('There are no bookmarks yet')}
%endif