Oh! Also kann ich das! Ich kann!!!
Doh!
OK, also etwas wie
<div class="product-purchase">
{{#if product.subscribed}}
<span class="purchased">✓ {{i18n 'discourse_subscriptions.subscribe.purchased'}}</span>
{{#link-to "user.billing.subscriptions" currentUser.username class="billing-link"}}
{{i18n 'discourse_subscriptions.subscribe.go_to_billing'}}
{{/link-to}}
{{plugin-outlet name="after-go-to-billing" args=(hash product=product)}}
{{else}}
{{#link-to "s.show" product.id disabled=product.subscribed class="btn btn-primary"}}
{{i18n 'discourse_subscriptions.subscribe.title'}}
{{/link-to}}
{{plugin-outlet name="after-subscribe-title" args=(hash product=product)}}
{{/if}}
</div>
Und dann kann ich so etwas wie
<script type="text/x-handlebars" data-template-name="/connectors/after-go-to-billing/foobar">
<div class="pfaffmanager-product"> vielleicht ein Link mit {{product.id}}</div>
</script>
machen. Oder du könntest sogar fast alle diese Produktblöcke ausblenden und ersetzen.
Vielleicht verstehe ich Plugin-Ausgänge doch noch.
CSS-Änderungen
Also einfach die gesamte s.hbs-Vorlage in ein <div class="subscription"> einbetten, und dann könntest du Dinge wie
.subscription
{
h1 {
content: "Hello, world";
background-color: yellow;
}
}
machen.
Klingt das richtig? Wenn hier nichts wirklich Dummes ist, dann glaube ich, dass ich auf dem Weg zu einem sinnvollen PR bin.
