Commits

Roger Haase  committed 8137390

whitespace changes only, based on coding_std.py plus a few manual edits

  • Participants
  • Parent commits 96742f6

Comments (0)

Files changed (22)

File MoinMoin/static/js/search.js

 $(document).ready(function(){
-	// kill form action on pressing Enter
-	$('#moin-long-searchform').submit(function(e){
-		e.preventDefault();
-		return false;
-	});
+    // kill form action on pressing Enter
+    $('#moin-long-searchform').submit(function(e){
+        e.preventDefault();
+        return false;
+    });
 
-	// hide form submit button
-	$('#moin-long-searchform .button').hide();
+    // hide form submit button
+    $('#moin-long-searchform .button').hide();
 
-	function ajaxify(query, allrevs) {
-		$.ajax({
-  			type: "GET",
-  			url: "/+search",
-  			data: { q: query, history: allrevs, boolajax: true }
-		}).done(function( html ) {
-			$('#finalresults').html(html)
-		});
-	}
-	$('#moin-search-query').keyup(function() {
-		var allrev = false
-		if($('[name="history"]').prop('checked')){
- 			allrev = true;
-		}		
-  		ajaxify($(this).val(), allrev);
-	});
-});
+    function ajaxify(query, allrevs) {
+        $.ajax({
+            type: "GET",
+            url: "/+search",
+            data: { q: query, history: allrevs, boolajax: true }
+        }).done(function( html ) {
+            $('#finalresults').html(html)
+        });
+    }
+    $('#moin-search-query').keyup(function() {
+        var allrev = false
+        if($('[name="history"]').prop('checked')){
+            allrev = true;
+        }
+        ajaxify($(this).val(), allrev);
+    });
+});

File MoinMoin/templates/ajaxsearch.html

 {% if omitted_words %}
   <p>{{ _("common words in query: %(termlist)s", termlist=omitted_words) }}</p>
 {% endif %}
-<br/> 
+<br/>
 {% if results is defined %}
     <p class="searchstats">
         {% if results %}

File MoinMoin/templates/basic.js

         // it is bad way if we rewrite URL's, hence used a div with id -> "checkmodifyview" in the modify view
         var test = $('#checkmodifyview').length;
         if (test == 1 && edit == false) {
-    		return "Data you may have entered will be discarded!";
-    	}
+            return "Data you may have entered will be discarded!";
+        }
         edit = false;
     }
     $('div.dropup').removeClass('menu');

File MoinMoin/templates/dictionary.js

 }
 
 $(document).ready(function(){
-     i18n_dict = { 
+     i18n_dict = {
         "Hide comments"  : "{{  _("Hide comments") }}",
         "Show comments"  : "{{  _("Show comments") }}",
         "Hide transclusions"  : "{{  _("Hide transclusions") }}",
         "Show transclusions"  : "{{  _("Show transclusions") }}",
-        "Your changes will be discarded if you leave this page without saving." : "{{ _("Your changes will be discarded if you leave this page without saving.") }}", 
+        "Your changes will be discarded if you leave this page without saving." : "{{ _("Your changes will be discarded if you leave this page without saving.") }}",
         "You missed! Double-click on text or to the right of text to auto-scroll text editor."  : "{{ _("You missed! Double-click on text or to the right of text to auto-scroll text editor.") }}",
         "Your browser is obsolete. Upgrade to gain auto-scroll text editor feature."  : "{{ _("Your browser is obsolete. Upgrade to gain auto-scroll text editor feature.") }}",
         "Your browser is old. Upgrade to gain auto-scroll page after edit feature."  : "{{ _("Your browser is old. Upgrade to gain auto-scroll page after edit feature.") }}",

File MoinMoin/templates/history.html

             <thead>
                 <tr>
                     {% if fqname.field == 'name_exact' %}
-                        <th>{{ _("Item ID") }}</th> 
+                        <th>{{ _("Item ID") }}</th>
                     {% else %}
                         <th>{{ _("Name") }}</th>
                     {% endif %}

File MoinMoin/templates/mail/content_diff.html

     </tr>
 {%- endfor %}
 </table>
-{% endmacro %}
+{% endmacro %}

File MoinMoin/templates/mail/html_base.html

     </tr>
 </table>
 </body>
-</html>
+</html>

File MoinMoin/templates/mail/notification_main.html

             style="text-decoration:none; color:#3CA7DD;">{{ _("Unsubscribe from
             this item notifications") }}</a></strong></p>
     </div>
-{%- endblock %}
+{%- endblock %}

File MoinMoin/templates/search.html

     {{ super() }}
 {% endblock %}
 
-{% block content %}    
+{% block content %}
     {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get', action=url_for('frontend.search', item_name=item_name)) }}
         <p>
         {{ forms.render(medium_search_form['q']) }}

File MoinMoin/themes/basic/static/css/custom.css

 html{
-  overflow-y:scroll;
+    overflow-y: scroll;
 }
 .moin-hist-rev {
-	text-align: center;
+    text-align: center;
 }
 #moin-button-diff {
-	text-align: center;
+    text-align: center;
 }
 .menu .submenu {
-	display: none;
-	margin-bottom: 0px;
+    display: none;
+    margin-bottom: 0px;
 }
 .menu:hover .submenu {
-	display: block;
+    display: block;
 }
-

File MoinMoin/themes/basic/templates/delete.html

 {% block content %}
 <h2>{{ title }}</h2>
 <div class="row">
-	<div class="col-lg-5">
-		{{ gen.form.open(form, method="post", action=url_for('frontend.delete_item', item_name=item.name)) }}
-	  	{{ forms.render_errors(form) }}
+    <div class="col-lg-5">
+        {{ gen.form.open(form, method="post", action=url_for('frontend.delete_item', item_name=item.name)) }}
+        {{ forms.render_errors(form) }}
 
-	    <div class="form-group">
-        	{{ forms.render_textcha(gen, form) }}
-        	{{ gen.input(form['comment'], type="text", class="form-control") }}
-    	</div>
-		
-		<div class="form-group">
-			{{ forms.render_submit(form, class='btn btn-primary') }}
-		</div>
-		{{ gen.form.close() }}
-	</div>
+        <div class="form-group">
+            {{ forms.render_textcha(gen, form) }}
+            {{ gen.input(form['comment'], type="text", class="form-control") }}
+        </div>
+
+        <div class="form-group">
+            {{ forms.render_submit(form, class='btn btn-primary') }}
+        </div>
+        {{ gen.form.close() }}
+    </div>
 </div>
 {% endblock %}

File MoinMoin/themes/basic/templates/destroy.html

     <div class="col-lg-5">
       {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name, rev=rev_id)) }}
       {{ forms.render_errors(form) }}
-      
+
       <div class="form-group">
         {{ gen.label(form['comment']) }}
         {{ gen.textarea(form['comment'], rows='1', class='form-control') }}
       </div>
       {{ forms.render_textcha(gen, form) }}
-      
+
       <div class="form-group">
         {{ forms.render_submit(form, class='btn btn-primary') }}
       </div>

File MoinMoin/themes/basic/templates/diff.html

 {% block content %}
 {% block headline %}
 <i class="icon-chevron-sign-left">
-	<a href="{{ url_for('frontend.history', item_name=item_name) }}"> {{ _("Back") }} </a> 
+    <a href="{{ url_for('frontend.history', item_name=item_name) }}"> {{ _("Back") }} </a>
 </i>
 <h2>{{ _("Diff for '%(item_name)s'", item_name=newrev.item.name) }}</h2>
 {% endblock %}

File MoinMoin/themes/basic/templates/history.html

                         <button class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" type="button">
                             <span class="caret"></span>
                         </button>
-                <ul class="dropdown-menu pull-right submenu"> 
+                <ul class="dropdown-menu pull-right submenu">
                     <li>
                         <a href="{{ url_for('frontend.show_item', item_name=doc.name[0], rev=doc.revid) }}">
                             {{ _('show') }}
                     <li>
                         <a href="{{ url_for('frontend.destroy_item', item_name=doc.name[0], rev=doc.revid) }}">
                             {{ _('destroy') }}
-                        </a> 
+                        </a>
                     </li>
                     {%- endif %}
                 </ul>

File MoinMoin/themes/basic/templates/layout.html

 
 {# Helper macro to generate links #}
 {% macro hyperlink(href, title, exists, label, iconcls, mainclass) -%}
-    <a href="{{ href }}" 
+    <a href="{{ href }}"
         {% if not exists %} class="moin-nonexistent {% if mainclass %}{{ mainclass }} {% endif %}"
         {% else %}
         {% if mainclass %}
-            class="{{ mainclass }}{% if current_url == href %} active{% endif %}" 
+            class="{{ mainclass }}{% if current_url == href %} active{% endif %}"
         {% elif current_url == href %}
             class="active"
         {% elif current_path == href %}
             class="active"
         {% endif %}
         {% endif %}
-        rel="nofollow" 
+        rel="nofollow"
         {% if title %} title="{{ title }}" {% endif %}>
         {% if iconcls %} <i class="{{ iconcls }}"> </i> {% endif %}
         {{ label }}
 {% endblock %}
 
 {% block layout %}
-	<div class="container">
+    <div class="container">
         <div class="row">
             <div class="col-lg-2 moin-logo">
                 {% if logo %}
                                           <span class="icon-bar"></span>
                                         </button>
                                         {% if cfg.sitename %}
-                                            <a class="navbar-brand" href="{{ url_for('frontend.show_item', item_name=cfg.item_root) }}"> 
-                                                {{ cfg.sitename }} 
+                                            <a class="navbar-brand" href="{{ url_for('frontend.show_item', item_name=cfg.item_root) }}">
+                                                {{ cfg.sitename }}
                                             </a>
                                         {% endif %}
                                     </div>
                                         {% else %}
                                             <a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>
                                                 {{ segment_name|shorten_fqname }}
-                                            </a>              
+                                            </a>
                                         {%- endif %}
                                     {%- endif %}
                                 {% endfor %}
                         </ul><!-- complete list of breadcrumbs -->
                     </div>
                 </div>
-            </div> <!-- col-lg-10 -->            
+            </div> <!-- col-lg-10 -->
         </div> <!-- row-topnavbar -->
 
         <div class="row">
                             <div class="list-group-item moin-list-heading"> {{ _("Site Navigation") }} </div>
                             {% for cls, url, text, title in navibar_items if cls != 'userlink' %}
                                 <a class="list-group-item {{ cls }}
-                                    {% if url in [current_url, current_path, current_url_showview] %} active{% endif %}" href="{{ url }}" 
+                                    {% if url in [current_url, current_path, current_url_showview] %} active{% endif %}" href="{{ url }}"
                                     {% if title %}title="{{ title }}"{% endif %}>
                                     {{ text|shorten_item_name }}
                                 </a>
                             {% endfor %}
-                            
+
                             {% if item_navigation %}
                             <div class="list-group-item moin-list-heading"> {{ _("Supplementation") }} </div>
                             {{ local_panel_main(item_navigation) }}
                             {% endif %}
 
                             {% endif %}
-                            
+
                             {% for cls, url, text, title in navibar_items if cls == 'userlink' %}
                                 {% if loop.first %}
                                     <div class="list-group-item moin-list-heading">Quick Links</div>
                                     <div class="moin-quicklink">
                                     <a class="moin-quicklink-label {{ cls }}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text|shorten_item_name }}
                                     </a>
-                                    <a class="moin-quicklink-delete" href="{{ url_for('frontend.quicklink_item', item_name=text) }}"> 
+                                    <a class="moin-quicklink-delete" href="{{ url_for('frontend.quicklink_item', item_name=text) }}">
                                         <i class="icon-remove"></i>
                                     </a>
                                 </div>
                 <div class="row">
                     <div class="col-lg-12">
                         {# id -> moin-flash is used to add special alerts for ex. for changes to User Settings via JS, see common.js #}
-                        <div id="moin-flash"> 
+                        <div id="moin-flash">
                             {% for category, msg in get_flashed_messages(with_categories=true) %}
                             <div class="moin-flash moin-flash-{{ category }}">
                                 {{ msg }}
             </div>
         </div> <!--/row for footer-->
         {% endblock %}
-	</div><!--/container-->
+    </div><!--/container-->
 {% endblock %}
 
 {% block body_scripts %}

File MoinMoin/themes/basic/templates/login.html

 {% block content %}
 <h2>{{ _('Moin Login') }}</h2>
 <div class="row">
-	<div class="col-lg-4">
-		{{ forms.render_errors(form) }}
+    <div class="col-lg-4">
+        {{ forms.render_errors(form) }}
 
-		{% if 'username' in login_inputs or 'password' in login_inputs %}
-			{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
+        {% if 'username' in login_inputs or 'password' in login_inputs %}
+            {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
 
-			  {% if 'username' in login_inputs %}
-			    <div class="form-group">
-			    	{{ gen.label(form['username']) }}
-			    	{{ gen.input(form['username'], type="text", class="form-control") }}
-			    </div>
-			  {% endif %}
-			  {% if 'password' in login_inputs %}
-			    <div class="form-group">
-			    	{{ gen.label(form['password']) }}
-			    	{{ gen.input(form['password'], type="password", class="form-control") }}
-			    </div>
-			  {% endif %}
+            {% if 'username' in login_inputs %}
+                <div class="form-group">
+                    {{ gen.label(form['username']) }}
+                    {{ gen.input(form['username'], type="text", class="form-control") }}
+                </div>
+            {% endif %}
+            {% if 'password' in login_inputs %}
+                <div class="form-group">
+                    {{ gen.label(form['password']) }}
+                    {{ gen.input(form['password'], type="password", class="form-control") }}
+                </div>
+            {% endif %}
 
-			{{ forms.render(form['submit']) }}
+            {{ forms.render(form['submit']) }}
 
-			<div class="form-group">
-			    {{ forms.render_submit(form, class='btn btn-primary') }}
-			</div>
-			{{ gen.form.close() }}
-		{% endif %}
+            <div class="form-group">
+                {{ forms.render_submit(form, class='btn btn-primary') }}
+            </div>
+            {{ gen.form.close() }}
+        {% endif %}
 
-		{% if 'openid' in login_inputs %}
-		<h2>{{ _('OpenID Login') }}</h2>
+        {% if 'openid' in login_inputs %}
+            <h2>{{ _('OpenID Login') }}</h2>
 
-			{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
+            {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
 
-			  {{ forms.render(form['openid']) }}
+            {{ forms.render(form['openid']) }}
 
-			{{ forms.render(form['submit']) }}
-			<div class="form-group">
-			    {{ forms.render_submit(form, class='btn btn-primary') }}
-			</div>
-			{{ gen.form.close() }}
-			{% endif %}
+            {{ forms.render(form['submit']) }}
+            <div class="form-group">
+                {{ forms.render_submit(form, class='btn btn-primary') }}
+            </div>
+            {{ gen.form.close() }}
+        {% endif %}
 
-	</div>
+    </div>
 </div>
 {% endblock %}

File MoinMoin/themes/basic/templates/modify.html

         <li><a href="#meta" data-toggle="tab">Edit Meta</a></li>
         <li><a href="#acl" data-toggle="tab">Edit ACL</a></li>
         <li><a href="#help" data-toggle="tab">Help</a></li>
-    </ul>    
+    </ul>
     <div class="tab-content">
         <div class="tab-pane active" id="editor">
             {{ data_editor(form['content_form'], item_name) }}

File MoinMoin/themes/basic/templates/modify_text.html

 {{ gen.textarea(form['data_text'], rows=form.rows|string, cols=form.cols|string, **kwargs) }}
 {{ base_editor(form) }}
 <br />
-{% endmacro %}
+{% endmacro %}

File MoinMoin/themes/basic/templates/register.html

 <h2>{{ _('Create Account') }}</h2>
 <div class="row">
   <div class="col-lg-4">
-    
+
     {{ gen.form.open(form, method="post", action=url_for('frontend.register')) }}
-    
+
     {% if form.errors %}
       <div class="moin-flash moin-flash-error">
       {% for error in form.errors %}

File MoinMoin/themes/basic/templates/rename.html

 {% block content %}
 <h2>{{ title }}</h2>
 <div class="row">
-	<div class="col-lg-5">
-		{{ gen.form.open(form, method="post", action=url_for('frontend.rename_item', item_name=item.name)) }}
-  		{{ forms.render_errors(form) }}
-  		<div class="form-group">
-	    	{{ gen.label(form['target']) }}
-	    	{{ gen.input(form['target'], type="text", class="form-control") }}
-	    </div>
+    <div class="col-lg-5">
+        {{ gen.form.open(form, method="post", action=url_for('frontend.rename_item', item_name=item.name)) }}
+        {{ forms.render_errors(form) }}
+        <div class="form-group">
+            {{ gen.label(form['target']) }}
+            {{ gen.input(form['target'], type="text", class="form-control") }}
+        </div>
 
-	    <div class="form-group">
-        	{{ forms.render_textcha(gen, form) }}
-        	{{ gen.input(form['comment'], type="text", class="form-control") }}
-    	</div>
+        <div class="form-group">
+            {{ forms.render_textcha(gen, form) }}
+            {{ gen.input(form['comment'], type="text", class="form-control") }}
+        </div>
 
-		<div class="form-group">
-			{{ forms.render_submit(form, class='btn btn-primary') }}
-		</div>
-		{{ gen.form.close() }}
-	</div>
+        <div class="form-group">
+            {{ forms.render_submit(form, class='btn btn-primary') }}
+        </div>
+        {{ gen.form.close() }}
+    </div>
 </div>
 {% endblock %}

File MoinMoin/themes/basic/templates/show.html

 {% endblock %}
 
 {% block local_panel %}
-        
+
         <!-- user, site, item actions -->
     <div class="list-group">
         {% if user_actions %}
         {% endif %}
 
         <div class="list-group-item moin-list-heading">View Options</div>
-        <button type="button" 
-                class="btn btn-default moin-user-action-special moin-toggle-comments-button" 
+        <button type="button"
+                class="btn btn-default moin-user-action-special moin-toggle-comments-button"
                 data-toggle="button"
                 title="Show Comments">
             <span class="pull-left">
                 <i class="icon-comment icon-fixed-width"></i>
-                Comments 
+                Comments
             </span>
         </button>
-        <button type="button" 
-                class="btn btn-default moin-user-action-special moin-transclusions-button" 
+        <button type="button"
+                class="btn btn-default moin-user-action-special moin-transclusions-button"
                 data-toggle="button"
                 title="Show Transclusions">
             <span class="pull-left">
                 Transclusions
             </span>
         </button>
-         
-        {% if item_actions %}           
+
+        {% if item_actions %}
             <div class="list-group-item moin-list-heading"> {{ _("Item Actions") }} </div>
             {{ self.item_actions() }}
         {% endif %}

File MoinMoin/themes/foobar/templates/layout.html

         <li id="moin-user" class="panel">User
         <ul>
         {% if user.valid -%}
-	    {% set avatar = user.avatar(20) %}
+            {% set avatar = user.avatar(20) %}
             {% if avatar %}
                 <li><img id="moin-avatar" src="{{ avatar }}" /></li>
             {%- endif %}