Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Renamed "receipt" to "recipe"

  • Loading branch information...
commit 4ab157977c99cfcad2ce6cabdcf5ea9f889a83ab 1 parent d4f75a6
@kore authored
View
2  LICENSE
@@ -425,7 +425,7 @@ reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
+your recipe of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
View
4 classes/autoload.php
@@ -51,7 +51,7 @@
'arbitExceptionNotFoundMarker' => 'classes/framework/exception_marker.php',
'arbitControllerUnknownActionException' => 'classes/controller/exception.php',
'arbitMainController' => 'classes/controller/main.php',
- 'arbitReceiptController' => 'classes/controller/receipts.php',
+ 'arbitRecipeController' => 'classes/controller/recipe.php',
'arbitResult' => 'classes/controller/result.php',
'arbitRedirectResult' => 'classes/controller/redirect.php',
'arbitUserController' => 'classes/controller/user.php',
@@ -198,7 +198,7 @@
'arbitViewDataModel' => 'classes/view/model/data.php',
'arbitViewMainModel' => 'classes/view/model/main.php',
'arbitViewModuleModel' => 'classes/view/model/module.php',
- 'arbitReceiptCreateModel' => 'classes/view/model/receipt_create.php',
+ 'arbitRecipeCreateModel' => 'classes/view/model/recipe_create.php',
'arbitViewUserMessageModel' => 'classes/view/model/error.php',
'arbitViewUserSuccessModel' => 'classes/view/model/success.php',
);
View
BIN  classes/classes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
12 classes/controller/receipts.php → classes/controller/recipe.php
@@ -30,7 +30,7 @@
* @version $Revision: 1236 $
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPL
*/
-class arbitReceiptController extends arbitController
+class arbitRecipeController extends arbitController
{
/**
* Index action
@@ -48,33 +48,33 @@ public function index( arbitRequest $request )
/**
* Overview action
*
- * Gives an overview on the currently available receipts
+ * Gives an overview on the currently available recipes
*
* @param arbitRequest $request
* @return arbitViewModel
*/
public function overview( arbitRequest $request )
{
- return new arbitViewUserMessageModel( 'Hello Receipts!' );
+ return new arbitViewUserMessageModel( 'Hello Recipes!' );
}
/**
* Overview action
*
- * Gives an overview on the currently available receipts
+ * Gives an overview on the currently available recipes
*
* @param arbitRequest $request
* @return arbitViewModel
*/
public function add( arbitRequest $request )
{
- $model = new arbitReceiptCreateModel();
+ $model = new arbitRecipeCreateModel();
if ( arbitHttpTools::get( 'create' ) !== null )
{
try
{
- $issue = new arbitReceiptModel();
+ $issue = new arbitRecipeModel();
$issue->title = arbitHttpTools::get( 'title' );
$issue->issueType = arbitHttpTools::get( 'type' );
$issue->text = arbitHttpTools::get( 'text' );
View
2  classes/router/http.php
@@ -44,7 +44,7 @@ public function createRoutes()
{
$this->routes[] = new arbitRoute( 'core', 'arbitMainController' );
$this->routes[] = new arbitRoute( 'user', 'arbitUserController' );
- $this->routes[] = new arbitRoute( 'receipts', 'arbitReceiptController' );
+ $this->routes[] = new arbitRoute( 'recipes', 'arbitRecipeController' );
$this->routes[] = new arbitRoute( 'error', 'arbitErrorController' );
arbitCacheRegistry::setCache( 'core' );
View
6 classes/view/decorator_manager.php
@@ -140,10 +140,10 @@ class arbitViewModelDecorationDependencyInjectionManager
'showCoreUserModel',
),
- // Core models for receipt handling
- 'arbitReceiptCreateModel' => array(
+ // Core models for recipe handling
+ 'arbitRecipeCreateModel' => array(
'addContextInformation',
- 'showReceiptCreateModel',
+ 'showRecipeCreateModel',
),
),
View
2  classes/view/handler/xhtml.php
@@ -52,7 +52,7 @@ class arbitViewXHtmlHandler extends arbitTemplateViewHandler
'showCoreUserRegisteredModel' => 'html/core/user/registered.tpl',
'showCoreUserLoginModel' => 'html/core/user/login.tpl',
'showCoreUserModel' => 'html/core/user.tpl',
- 'showReceiptCreateModel' => 'html/receipt/create.tpl',
+ 'showRecipeCreateModel' => 'html/recipe/create.tpl',
);
/**
View
6 classes/view/model/receipt_create.php → classes/view/model/recipe_create.php
@@ -24,14 +24,14 @@
*/
/**
- * Model struct representing receipt creation
+ * Model struct representing recipe creation
*
* @package Core
* @subpackage View
* @version $Revision: 1480 $
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPL
*/
-class arbitReceiptCreateModel extends arbitViewModel
+class arbitRecipeCreateModel extends arbitViewModel
{
/**
* Array containing the actual view data.
@@ -41,7 +41,7 @@ class arbitReceiptCreateModel extends arbitViewModel
protected $properties = array(
'errors' => array(),
'success' => null,
- 'receipt' => null,
+ 'recipe' => null,
);
/**
View
2  htdocs/styles/screen.css
@@ -456,7 +456,7 @@ input[disabled="disabled"] {
}
/**
- * Receipt form formatting
+ * Recipe form formatting
*/
label ul.ingredients {
width: 70%;
View
10 templates/html/layout.tpl
@@ -10,11 +10,11 @@
<link rel="Stylesheet" type="text/css" href="{$root}/styles/screen.css" media="screen" />
<script src="{$root}/scripts/form.js" type="text/ecmascript"></script>
- <title>Receipt Manager</title>
+ <title>Recipe Manager</title>
</head>
<body class="dashboard">
<h1>
- <a href="{$root}/">Receipt Manager</a>
+ <a href="{$root}/">Recipe Manager</a>
</h1>
<div class="navigation">
@@ -28,9 +28,9 @@
{if $model->loggedIn}
<ul class="main">
- <li><a href="{$root}/receipts/overview">Overview</a></li>
- <li><a href="{$root}/receipts/tags">By Tag</a></li>
- <li><a href="{$root}/receipts/add">Add receipt</a></li>
+ <li><a href="{$root}/recipes/overview">Overview</a></li>
+ <li><a href="{$root}/recipes/tags">By Tag</a></li>
+ <li><a href="{$root}/recipes/add">Add recipe</a></li>
</ul>
{/if}
View
8 templates/html/receipt/create.tpl → templates/html/recipe/create.tpl
@@ -1,6 +1,6 @@
{use $model, $root = $model->request->root}
-{tr_context "receipts"}
-<h2>{tr "Add receipt"}</h2>
+{tr_context "recipes"}
+<h2>{tr "Add recipe"}</h2>
{include arbit_get_template( 'html/core/errors.tpl' )
send $model->errors as $errors}
@@ -11,7 +11,7 @@
<form method="post" action="{$root}/{$model->request->controller}/{$model->request->action}/add"
onsubmit="return validateForm( this );">
<fieldset>
- <legend>{tr "Add receipt"}</legend>
+ <legend>{tr "Add recipe"}</legend>
<input type="hidden" name="_arbit_form_token" value="{arbit_form_token()}" />
@@ -74,7 +74,7 @@ var ingredient = 1;
</label>
<label>
- <input type="submit" name="create" value="{tr "Add receipt"}" />
+ <input type="submit" name="create" value="{tr "Add recipe"}" />
</label>
</fieldset>
</form>
View
10 translations/en.xml
@@ -574,15 +574,15 @@ Actual behavior
<translation type="unfinished">Hello World!</translation>
</message>
<message>
- <source>Hello Receipts!</source>
- <translation type="unfinished">Hello Receipts!</translation>
+ <source>Hello Recipes!</source>
+ <translation type="unfinished">Hello Recipes!</translation>
</message>
</context>
<context>
- <name>receipts</name>
+ <name>recipes</name>
<message>
- <source>Add receipt</source>
- <translation type="unfinished">Add receipt</translation>
+ <source>Add recipe</source>
+ <translation type="unfinished">Add recipe</translation>
</message>
<message>
<source>Name</source>
Please sign in to comment.
Something went wrong with that request. Please try again.