From b17242308e193479538b18425a27dca4da18183e Mon Sep 17 00:00:00 2001 From: lrbalt Date: Sun, 11 Nov 2007 19:58:04 +0000 Subject: [PATCH] removed references to unimplemented import functionality. From the discussion in the mailinglist and #289 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@635 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/data/export.rhtml | 37 -------------------- tracks/app/views/data/import.rhtml | 18 ---------- tracks/app/views/data/index.rhtml | 46 ++++++++++++++++++------- tracks/app/views/layouts/standard.rhtml | 2 +- 4 files changed, 35 insertions(+), 68 deletions(-) delete mode 100644 tracks/app/views/data/export.rhtml delete mode 100644 tracks/app/views/data/import.rhtml diff --git a/tracks/app/views/data/export.rhtml b/tracks/app/views/data/export.rhtml deleted file mode 100644 index 5bb147fa..00000000 --- a/tracks/app/views/data/export.rhtml +++ /dev/null @@ -1,37 +0,0 @@ -
-
-

Exporting data

-

You can choose between the following formats:

-
    -
  • YAML: Best for porting data between Tracks installations
  • -
  • CSV: Best for importing into spreadsheet or data analysis software
  • -
  • XML: Best for importing or repurposing the data
  • -
- -

- - - - - - - - - - - - - - - - - - - - - -
DescriptionDownload link
YAML file containing all your actions, contexts, projects, tags and notes<%= link_to "YAML file", :controller => 'data', :action => 'yaml_export' %>
CSV file containing all of your actions, with named contexts and projects<%= link_to "CSV file (actions, contexts and projects)", :controller => 'data', :action => 'csv_actions' %>
CSV file containing all your notes<%= link_to "CSV file (notes only)", :controller => 'data', :action => 'csv_notes' %>
XML file containing all your actions, contexts, projects, tags and notes<%= link_to "XML file (actions only)", :controller => 'data', :action => 'xml_export' %>
-

- -
\ No newline at end of file diff --git a/tracks/app/views/data/import.rhtml b/tracks/app/views/data/import.rhtml deleted file mode 100644 index 36b67651..00000000 --- a/tracks/app/views/data/import.rhtml +++ /dev/null @@ -1,18 +0,0 @@ -
-
-
-

Importing data

-

You can choose between the following formats:

-
    -
  • YAML: Best for porting data between Tracks installations
  • -
  • CSV: Best for importing into spreadsheet or data analysis software
  • -
- -
    -
  • YAML
  • -
  • CSV
  • -
- -
-
\ No newline at end of file diff --git a/tracks/app/views/data/index.rhtml b/tracks/app/views/data/index.rhtml index 10d15e6d..5bb147fa 100644 --- a/tracks/app/views/data/index.rhtml +++ b/tracks/app/views/data/index.rhtml @@ -1,15 +1,37 @@ -
-
+
-

Importing and exporting data into Tracks

-

You can export your data in a number of different forms. Note: you can only export/import your own data (i.e. the data available when you are logged in).

+

Exporting data

+

You can choose between the following formats:

+
    +
  • YAML: Best for porting data between Tracks installations
  • +
  • CSV: Best for importing into spreadsheet or data analysis software
  • +
  • XML: Best for importing or repurposing the data
  • +
+ +

+ + + + + + + + + + + + + + + + + + + + + +
DescriptionDownload link
YAML file containing all your actions, contexts, projects, tags and notes<%= link_to "YAML file", :controller => 'data', :action => 'yaml_export' %>
CSV file containing all of your actions, with named contexts and projects<%= link_to "CSV file (actions, contexts and projects)", :controller => 'data', :action => 'csv_actions' %>
CSV file containing all your notes<%= link_to "CSV file (notes only)", :controller => 'data', :action => 'csv_notes' %>
XML file containing all your actions, contexts, projects, tags and notes<%= link_to "XML file (actions only)", :controller => 'data', :action => 'xml_export' %>
+

-
    -
  • Import
  • -
  • - <%= link_to "Export", :controller => 'data', :action => 'export' %> -
  • -
-
-
\ No newline at end of file +
\ No newline at end of file diff --git a/tracks/app/views/layouts/standard.rhtml b/tracks/app/views/layouts/standard.rhtml index f3a1fdc4..e96fb27f 100644 --- a/tracks/app/views/layouts/standard.rhtml +++ b/tracks/app/views/layouts/standard.rhtml @@ -50,7 +50,7 @@ window.onload=function(){
  • <%= navigation_link( "Done", done_path, {:accesskey=>"d", :title=>"Completed"} ) %>
  • <%= navigation_link( "Notes", notes_path, {:accesskey => "o", :title => "Show all notes"} ) %>
  • <%= navigation_link( "Preferences", preferences_path, {:accesskey => "u", :title => "Show my preferences"} ) %>
  • -
  • <%= navigation_link( "Import/Export", {:controller => "data", :action => "index"}, {:accesskey => "i", :title => "Import and export data"} ) %>
  • +
  • <%= navigation_link( "Export", {:controller => "data", :action => "index"}, {:accesskey => "i", :title => "Import and export data"} ) %>
  • <% if current_user.is_admin? -%>
  • <%= navigation_link("Admin", users_path, {:accesskey => "a", :title => "Add or delete users"} ) %>
  • <% end -%>