{{_("user.home.clash_configs.intro")}}

<div class="card-deck">
    <div class="card card-success">
        <div class="card-header">{{_("user.home.clash_configs.only_for_blocked_sites.title")}}</div>
        <div class="card-body">
            {{_("user.home.clash_configs.only_for_blocked_sites.description")}}
            % if show_meta
            <div class="btn-group">
                <a href="{{'clash' if ios else 'clashmeta'}}://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/meta/lite.yml?mode={{mode}}&name=mlite_{{domain}}-{{mode}}"
                    class="btn btn-success orig-link">{{_("user.home.clash_configs.only_for_blocked_sites.btn")}}</a>
            </div>
            <details>
                <summary>{{_("user.home.clash_configs.alternative_for_normal_clash")}}</summary>
                <div class="btn-group">
                    <a href="clash://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/lite.yml?mode={{mode}}&name=lite_{{domain}}-{{mode}}"
                        class="btn btn-secondary orig-link">{{_("user.home.clash_configs.link_for_normal_clash")}}</a>
                </div>
            </details>
            %else
            <div class="btn-group">
                <a href="clash://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/lite.yml?mode={{mode}}&name=lite_{{domain}}-{{mode}}"
                    class="btn btn-success orig-link">{{_("user.home.clash_configs.only_for_blocked_sites.btn")}}</a>
            </div>
            %endif
        </div>
    </div>

    <div class="card card-warning">
        <div class="card-header">{{_("user.home.clash_configs.foreign_sites.title")}}</div>
        <div class="card-body">
            {{_("user.home.clash_configs.foreign_sites.description")}}
            % if show_meta
            <div class="btn-group">
                <a href="{{'clash' if ios else 'clashmeta'}}://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/meta/normal.yml?mode={{mode}}&name=mnormal_{{domain}}-{{mode}}"
                    class="btn btn-warning orig-link">{{_("user.home.clash_configs.foreign_sites.btn")}}</a>
            </div>
            <details>
                <summary>{{_("user.home.clash_configs.alternative_for_normal_clash")}}</summary>
                <div class="btn-group">
                    <a href="clash://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/normal.yml?mode={{mode}}&name=normal_{{domain}}-{{mode}}"
                        class="btn btn-secondary orig-link">{{_("user.home.clash_configs.link_for_normal_clash")}}</a>
                </div>
            </details>
            %else
            <div class="btn-group">
                <a href="clash://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/normal.yml?mode={{mode}}&name=normal_{{domain}}-{{mode}}"
                class="btn btn-warning orig-link">{{_("user.home.clash_configs.foreign_sites.btn")}}</a>
            </div>
            % endif
        </div>
    </div>

    % if not hconfigs[ConfigEnum.block_iran_sites]:
    <div class="card card-danger">
        <div class="card-header">{{_("user.home.clash_configs.all_sites.title")}}</div>
        <div class="card-body">
            {{_("user.home.clash_configs.all_sites.description")}}
            % if show_meta
            <div class="btn-group">
                <a href="{{'clash' if ios else 'clashmeta'}}://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/meta/all.yml?mode={{mode}}&name=mall_{{domain}}-{{mode}}"
                    class="btn btn-danger orig-link">{{_("user.home.clash_configs.all_sites.btn")}}</a>
            </div>
            <details>
                <summary>{{_("user.home.clash_configs.alternative_for_normal_clash")}}</summary>
                <div class="btn-group">
                    <a href="clash://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/all.yml?mode={{mode}}&name=all_{{domain}}-{{mode}}"
                        class="btn btn-secondary orig-link">{{_("user.home.clash_configs.link_for_normal_clash")}}</a>
                </div>
            </details>
            %else
            <div class="btn-group">
                <a href="clash://install-config?url=https://{{domain}}/{{hconfigs[ConfigEnum.proxy_path]}}/{{user.uuid}}/clash/all.yml?mode={{mode}}&name=all_{{domain}}-{{mode}}"
                    class="btn btn-danger orig-link">{{_("user.home.clash_configs.all_sites.btn")}}</a>
            </div>
            %endif
        </div>
    </div>
    % endif
</div>