Skip to content

Commit

Permalink
#1713 show /delete
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 25, 2023
1 parent 484ac51 commit f3ecac5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/rultor/agents/shells/PfShell.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public String key() throws IOException {
final InputStream asset = this.profile.assets().get(path);
if (asset == null) {
throw new Profile.ConfigException(
String.format("private SSH key not found at %s", path)
String.format("Private SSH key not found at %s", path)
);
}
try {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/rultor/web/TkTalk.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Response act(final RqRegex req) throws IOException {
if (!this.talks.exists(number)) {
throw new RsForward(
new RsFlash(
"there is no such page here",
"There is no such page here",
Level.WARNING
)
);
Expand Down
5 changes: 5 additions & 0 deletions src/main/xsl/talk.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
</title>
</xsl:template>
<xsl:template match="page" mode="body">
<p>
<a href="/{talk/name}/delete">
<xsl:text>/delete</xsl:text>
</a>
</p>
<xsl:apply-templates select="talk"/>
</xsl:template>
<xsl:template match="talk">
Expand Down

0 comments on commit f3ecac5

Please sign in to comment.