Changeset - d99afb88579e
[Not reviewed]
default
0 32 0
Mads Kiilerich (mads) - 9 years ago 2017-01-09 00:41:30
mads@kiilerich.com
style: rename div.table to Bootstrap .panel-body

Based on work by Dominik Ruf.
32 files changed with 42 insertions and 54 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -1926,10 +1926,6 @@ BIN_FILENODE = 6
 
    text-align: left;
 
}
 

	
 
.table {
 
    position: relative;
 
}
 

	
 
#graph {
 
    position: relative;
 
    overflow: hidden;
 
@@ -2141,10 +2137,10 @@ BIN_FILENODE = 6
 
    text-decoration: none;
 
}
 

	
 
#compare_branches + .table .revision-link,
 
#compare_tags + .table .revision-link,
 
#compare_bookmarks + .table .revision-link,
 
.table #files_data .revision-link,
 
#compare_branches + div.panel-body .revision-link,
 
#compare_tags + div.panel-body .revision-link,
 
#compare_bookmarks + div.panel-body .revision-link,
 
div.panel-body #files_data .revision-link,
 
#repos_list_wrap .revision-link,
 
#shortlog_data .revision-link {
 
    font-weight: normal !important;
 
@@ -3220,7 +3216,7 @@ div#legend_data, div#legend_container, d
 
}
 

	
 
#content div.panel div.form,
 
#content div.panel div.table,
 
#content div.panel div.panel-body,
 
#content div.panel div.traffic {
 
    position: relative;
 
    clear: both;
kallithea/templates/admin/admin.html
Show inline comments
 
@@ -22,7 +22,7 @@
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="user_log">
 
            <%include file='admin_log.html'/>
 
        </div>
kallithea/templates/admin/gists/edit.html
Show inline comments
 
@@ -28,7 +28,7 @@
 
        ${self.breadcrumbs()}
 
    </div>
 

	
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="edit_error" style="display: none" class="flash_msg">
 
            <div class="alert alert-dismissable alert-warning">
 
              <button type="button" class="close" data-dismiss="alert" aria-hidden="true"><i class="icon-cancel-circled"></i></button>
kallithea/templates/admin/gists/index.html
Show inline comments
 
@@ -66,7 +66,7 @@
 
            ${c.gists_pager.pager(**request.GET.mixed())}
 
        </ul>
 
    %else:
 
        <div class="table">${_('There are no gists yet')}</div>
 
        <div>${_('There are no gists yet')}</div>
 
    %endif
 
</div>
 
</%def>
kallithea/templates/admin/gists/new.html
Show inline comments
 
@@ -28,7 +28,7 @@
 
        ${self.breadcrumbs()}
 
    </div>
 

	
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="files_data">
 
          ${h.form(h.url('gists'), method='post',id='eform')}
 
            <div>
kallithea/templates/admin/gists/show.html
Show inline comments
 
@@ -26,7 +26,7 @@
 
        </div>
 
        %endif
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="files_data">
 
            <div id="body" class="codeblock">
 
                <div class="code-header">
kallithea/templates/admin/my_account/my_account_repos.html
Show inline comments
 
<h4>${_('Repositories You Own')}</h4>
 

	
 
<div class="table">
 
<div>
 
    <table id="datatable_list_wrap"></table>
 
</div>
 

	
kallithea/templates/admin/my_account/my_account_watched.html
Show inline comments
 
<h4>${_('Repositories You are Watching')}</h4>
 

	
 
<div class="table">
 
<div>
 
    <table id="datatable_list_wrap"></table>
 
</div>
 

	
kallithea/templates/admin/notifications/notifications_data.html
Show inline comments
 
@@ -31,5 +31,5 @@ unread = lambda n:{False:'unread'}.get(n
 
</ul>
 

	
 
%else:
 
    <div class="table">${_('No notifications here yet')}</div>
 
    <div>${_('No notifications here yet')}</div>
 
%endif
kallithea/templates/admin/notifications/show_notification.html
Show inline comments
 
@@ -20,7 +20,7 @@
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
      <div id="notification_${c.notification.notification_id}">
 
        <div class="notification-header">
 
          ${h.gravatar_div(c.notification.created_by_user.email, size=24)}
kallithea/templates/admin/repo_groups/repo_groups.html
Show inline comments
 
@@ -26,7 +26,7 @@
 
            %endif
 
        </div>
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <table id="datatable_list_wrap"></table>
 
    </div>
 
</div>
kallithea/templates/admin/repos/repos.html
Show inline comments
 
@@ -24,7 +24,7 @@
 
         %endif
 
        </div>
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <table id="datatable_list_wrap"></table>
 
    </div>
 

	
kallithea/templates/admin/user_groups/user_groups.html
Show inline comments
 
@@ -25,7 +25,7 @@
 
        %endif
 
        </div>
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <table id="datatable_list_wrap"></table>
 
    </div>
 
</div>
kallithea/templates/admin/users/users.html
Show inline comments
 
@@ -23,7 +23,7 @@
 
            <a href="${h.url('new_user')}" class="btn btn-success btn-xs"><i class="icon-plus"></i> ${_('Add User')}</a>
 
        </div>
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <table id="datatable_list_wrap"></table>
 
    </div>
 
</div>
kallithea/templates/base/perms_summary.html
Show inline comments
 
@@ -4,7 +4,7 @@
 
##    ${p.perms_summary(c.perm_user.permissions)}
 

	
 
<%def name="perms_summary(permissions, show_all=False, actions=True)">
 
<div id="perms" class="table">
 
<div id="perms">
 
     %for section in sorted(permissions.keys()):
 
        <div class="perms_section_head">
 
            <h4>${section.replace("_"," ").capitalize()}</h4>
kallithea/templates/changelog/changelog.html
Show inline comments
 
@@ -31,7 +31,7 @@ ${self.repo_context_bar('changelog', c.f
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        %if c.pagination:
 
            <div>
 
                <div style="overflow:auto; ${'display:none' if c.changelog_for_path else ''}">
kallithea/templates/changeset/changeset.html
Show inline comments
 
@@ -19,16 +19,16 @@
 
<%def name="main()">
 
${self.repo_context_bar('changelog', c.changeset.raw_id)}
 
<div class="panel panel-primary">
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <script>
 
  <div class="panel-heading clearfix">
 
    ${self.breadcrumbs()}
 
  </div>
 
  <script>
 
    var _USERS_AC_DATA = ${c.users_array|n};
 
    var _GROUPS_AC_DATA = ${c.user_groups_array|n};
 
    AJAX_COMMENT_URL = "${url('changeset_comment',repo_name=c.repo_name,revision=c.changeset.raw_id)}";
 
    AJAX_COMMENT_DELETE_URL = "${url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}";
 
    </script>
 
    <div class="table">
 
  </script>
 
  <div class="panel-body">
 
        <div class="diffblock">
 
            <div class="parents">
 
                <div id="parent_link" class="changeset_hash">
 
@@ -299,5 +299,5 @@ ${self.repo_context_bar('changelog', c.c
 

	
 
    </script>
 

	
 
    </div>
 
  </div>
 
</%def>
kallithea/templates/changeset/changeset_range.html
Show inline comments
 
@@ -22,7 +22,7 @@ ${self.repo_context_bar('changelog')}
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="body" class="diffblock">
 
            <div class="code-header">
 
                <div>
kallithea/templates/compare/compare_diff.html
Show inline comments
 
@@ -23,7 +23,7 @@ ${self.repo_context_bar('changelog')}
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="body" class="diffblock">
 
            <div class="compare-revision-selector">
 
                ## divs are "inline-block" and cannot have whitespace between them.
kallithea/templates/errors/error_document.html
Show inline comments
 
@@ -32,8 +32,7 @@
 
    </head>
 
    <body>
 
        <%include file="/base/flash_msg.html"/>
 
        <div id="login">
 
            <div class="table">
 
        <div>
 
                <div id="main_div">
 
                    <h2>${c.site_name}</h2>
 
                    <h1 class="error_message">${c.error_message}</h1>
 
@@ -41,7 +40,6 @@
 
                    <p>${c.error_explanation}</p>
 

	
 
                </div>
 
            </div>
 
        </div>
 
    </body>
 

	
kallithea/templates/files/files.html
Show inline comments
 
@@ -29,7 +29,7 @@ ${self.repo_context_bar('files', c.revis
 
              ${_("Branch filter:")} ${h.select('branch_selector',c.changeset.raw_id,c.revision_options)}
 
        </div>
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="files_data">
 
            <%include file='files_ypjax.html'/>
 
        </div>
kallithea/templates/files/files_add.html
Show inline comments
 
@@ -32,7 +32,7 @@ ${self.repo_context_bar('files')}
 
            <a href="#">${_('Branch')}: ${c.cs.branch}</a>
 
        </div>
 
    </div>
 
    <div class="table" id="edit">
 
    <div class="panel-body" id="edit">
 
        <div id="files_data">
 
          ${h.form(h.url.current(),method='post',id='eform',enctype="multipart/form-data", class_="form-horizontal form-inline")}
 
          <h3 class="files_location">
kallithea/templates/files/files_delete.html
Show inline comments
 
@@ -23,7 +23,7 @@ ${self.repo_context_bar('files')}
 
            <a href="#">${_('Branch')}: ${c.cs.branch}</a>
 
        </div>
 
    </div>
 
    <div class="table" id="edit">
 
    <div class="panel-body" id="edit">
 
        <div id="files_data">
 
            ${h.form(h.url.current(),method='post',class_="form-horizontal")}
 
            <h3 class="files_location">
kallithea/templates/files/files_edit.html
Show inline comments
 
@@ -32,7 +32,7 @@ ${self.repo_context_bar('files')}
 
            <a href="#">${_('Branch')}: ${c.cs.branch}</a>
 
        </div>
 
    </div>
 
    <div class="table" id="edit">
 
    <div class="panel-body" id="edit">
 
        <div id="files_data">
 
            <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.raw_id,c.file.path)}</h3>
 
            ${h.form(h.url.current(),method='post',id='eform',class_='form-inline')}
kallithea/templates/followers/followers.html
Show inline comments
 
@@ -19,7 +19,7 @@ ${self.repo_context_bar('followers')}
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="followers">
 
            <%include file='followers_data.html'/>
 
        </div>
kallithea/templates/forks/forks.html
Show inline comments
 
@@ -19,7 +19,7 @@ ${self.repo_context_bar('showforks')}
 
    <div class="panel-heading clearfix">
 
        ${self.breadcrumbs()}
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="forks">
 
            <%include file='forks_data.html'/>
 
        </div>
kallithea/templates/index_base.html
Show inline comments
 
@@ -42,7 +42,7 @@
 
            %endif
 
        </div>
 
        %if c.groups:
 
        <div class="table">
 
        <div class="panel-body">
 
            <div id='groups_list_wrap'>
 
              <table id="groups_list">
 
                  <thead>
 
@@ -74,7 +74,7 @@
 
            </div>
 
        </div>
 
        %endif
 
        <div class="table">
 
        <div>
 
            <table id="repos_list_wrap"></table>
 
        </div>
 
    </div>
kallithea/templates/pullrequests/pullrequest_show.html
Show inline comments
 
@@ -285,7 +285,7 @@ ${self.repo_context_bar('showpullrequest
 
    <div class="panel-heading clearfix">
 
      <div class="breadcrumbs">${_('Pull Request Content')}</div>
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
          <div id="changeset_compare_view_content">
 
              <h5>
 
                  ${comment.comment_count(c.inline_cnt, len(c.comments))}
kallithea/templates/search/search_commit.html
Show inline comments
 
@@ -2,7 +2,6 @@
 

	
 
%for cnt,sr in enumerate(c.formated_results):
 
    %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'):
 
    <div class="table">
 
        <div id="body${cnt}" class="codeblock">
 
            <div class="code-header">
 
                <div class="search-path">${h.link_to(h.literal('%s &raquo; %s' % (sr['repository'],sr['raw_id'])),
 
@@ -25,14 +24,11 @@
 
                %endif
 
            </div>
 
        </div>
 
    </div>
 
    %else:
 
        %if cnt == 0:
 
        <div class="table">
 
            <div id="body${cnt}" class="codeblock">
 
                <div class="error">${_('Permission denied')}</div>
 
            </div>
 
        </div>
 
        %endif
 
    %endif
 
%endfor
kallithea/templates/search/search_content.html
Show inline comments
 
@@ -2,7 +2,6 @@
 

	
 
%for cnt,sr in enumerate(c.formated_results):
 
    %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'):
 
    <div class="table">
 
        <div id="body${cnt}" class="codeblock">
 
            <div class="code-header">
 
                <div class="search-path">${h.link_to(h.literal('%s &raquo; %s' % (sr['repository'],sr['f_path'])),
 
@@ -13,10 +12,9 @@
 
                <pre>${h.literal(sr['content_short_hl'])}</pre>
 
            </div>
 
        </div>
 
    </div>
 
    %else:
 
        %if cnt == 0:
 
        <div class="table">
 
        <div>
 
            <div id="body${cnt}" class="codeblock">
 
                <div class="error">${_('Permission denied')}</div>
 
            </div>
kallithea/templates/summary/summary.html
Show inline comments
 
@@ -179,7 +179,7 @@ summary = lambda n:{False:'summary-short
 
         %endif
 
        </div>
 
    </div>
 
    <div class="table">
 
    <div class="panel-body">
 
        <div id="shortlog_data">
 
            <%include file='../changelog/changelog_summary_data.html'/>
 
        </div>
kallithea/tests/functional/test_admin_notifications.py
Show inline comments
 
@@ -23,7 +23,7 @@ class TestNotificationsController(TestCo
 
        Session().commit()
 

	
 
        response = self.app.get(url('notifications'))
 
        response.mustcontain('<div class="table">No notifications here yet</div>')
 
        response.mustcontain('<div>No notifications here yet</div>')
 

	
 
        with test_context(self.app):
 
            cur_user = self._get_logged_user()
0 comments (0 inline, 0 general)