-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OID extractor for Tera templates
- Loading branch information
1 parent
eb02487
commit badc288
Showing
12 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ pub async fn action( | |
) | ||
.into_response()) | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<turbo-stream action="replace" target="confirmation-modal"> | ||
<template></template> | ||
</turbo-stream> | ||
<turbo-stream action="remove" target="account_{{ account._id["$oid"] }}"></turbo-stream> | ||
<turbo-stream action="remove" target="account_{{ account | oid }}"></turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% extends "delete_confirmation.html" %} | ||
{% block prompt %}Are you sure you want to delete the "{{ account.name }}" account?{% endblock %} | ||
{% block entity %}account{% endblock %} | ||
{% block action %}/accounts/{{ account._id["$oid"] }}{% endblock %} | ||
{% block action %}/accounts/{{ account | oid }}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<turbo-stream action="replace" target="confirmation-modal"> | ||
<template></template> | ||
</turbo-stream> | ||
<turbo-stream action="remove" target="envelope_{{ envelope._id["$oid"] }}"></turbo-stream> | ||
<turbo-stream action="remove" target="envelope_{{ envelope | oid }}"></turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% extends "delete_confirmation.html" %} | ||
{% block prompt %}Are you sure you want to delete the "{{ envelope.name }}" envelope?{% endblock %} | ||
{% block entity %}envelope{% endblock %} | ||
{% block action %}/envelopes/{{ envelope._id["$oid"] }}{% endblock %} | ||
{% block action %}/envelopes/{{ envelope | oid }}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<turbo-stream action="replace" target="confirmation-modal"> | ||
<template></template> | ||
</turbo-stream> | ||
<turbo-stream action="remove" target="goal_{{ goal._id["$oid"] }}"></turbo-stream> | ||
<turbo-stream action="remove" target="goal_{{ goal | oid }}"></turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% extends "delete_confirmation.html" %} | ||
{% block prompt %}Are you sure you want to delete the "{{ goal.name }}" goal?{% endblock %} | ||
{% block entity %}goal{% endblock %} | ||
{% block action %}/goals/{{ goal._id["$oid"] }}{% endblock %} | ||
{% block action %}/goals/{{ goal | oid }}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters