<commit_before>{# Action for adding connections between rscs #}

{% block widget_content %}

    {% with btn_class|default:"btn btn-small btn-add-thing" as btn_class %}
    {% with m.rsc[category].id as cat_id %}
    {% with	new_rsc_title|default:m.rsc[cat_id].title|lower as cat_title %}

        <a id="{{ #connect.predicate }}" class="{{ btn_class }}" href="#connect">+ {_ add my  _} {{cat_title }} {_ toe _}</a>
        {% if direction=='in' %}
            {% wire id=#connect.predicate 
                action={dialog_open template="_action_ginger_dialog_connect.tpl" 
                            title=[_"add my", " ", cat_title , _" toe "]
                            logon_required
                            object_id=id
                            cat=cat_id
                            findtab=findtab
                            newtab=newtab
                            callback=callback
                            predicate=predicate
                            direction=direction
                            cg_id=cg_id nocatselect nocgselect tab=tab|default:'new'}
            %}
        {% else %}
            {% wire id=#connect.predicate 
                action={dialog_open template="_action_ginger_dialog_connect.tpl" 
                            title=[_"Add ", cat_title , _" toe"]
                            logon_required
                            subject_id=id
                            cat=cat_id<commit_msg>[edit] Fixed title of connect dialog<commit_after>{# Action for adding connections between rscs #}

{% block widget_content %}

    {% with btn_class|default:"btn btn-small btn-add-thing" as btn_class %}
    {% with m.rsc[category].id as cat_id %}
    {% with	new_rsc_title|default:m.rsc[cat_id].title|lower as cat_title %}

        <a id="{{ #connect.predicate }}" class="{{ btn_class }}" href="#connect">+ {_ add my  _} {{cat_title }} {_ toe _}</a>
        {% if direction=='in' %}
            {% wire id=#connect.predicate 
                action={dialog_open template="_action_ginger_dialog_connect.tpl" 
                            title=[_"add my", " ", cat_title, " ", _"toe "]
                            logon_required
                            object_id=id
                            cat=cat_id
                            findtab=findtab
                            newtab=newtab
                            callback=callback
                            predicate=predicate
                            direction=direction
                            cg_id=cg_id nocatselect nocgselect tab=tab|default:'new'}
            %}
        {% else %}
            {% wire id=#connect.predicate 
                action={dialog_open template="_action_ginger_dialog_connect.tpl" 
                            title=[_"add my", " ", cat_title , " ", _"toe"]
                            logon_required
                            subject_id=id
                            cat=cat_id
{'fraction_non_alphanumeric': 0.10502907971262401, 'fraction_numerical': 0.0, 'mean_word_length': 1.3676113360323887, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '354561', 'n_tokens_mistral': 802, 'n_tokens_neox': 743, 'n_words': 139}