OSDN Git Service

Fixed for MT5.0b2.
authorTaku Amano <taku@toi-planning.net>
Wed, 16 Sep 2009 13:59:08 +0000 (22:59 +0900)
committerTaku Amano <taku@toi-planning.net>
Wed, 16 Sep 2009 13:59:08 +0000 (22:59 +0900)
lib/PluginManager/Command.pm
lib/PluginManager/L10N/ja.pm
lib/PluginManager/Repository.pm
lib/PluginManager/Util.pm
tmpl/include/pm_package_list_table.tmpl
tmpl/pm_export.tmpl
tmpl/pm_import.tmpl
tmpl/pm_repository.tmpl
tmpl/pm_setting.tmpl

index f31cdbe..cd47dcf 100644 (file)
@@ -4,7 +4,6 @@ use base qw( Class::Accessor::Fast );
 use strict;
 
 use YAML::Tiny;
-use PluginManager::Util;
 use PluginManager::Repository;
 
 sub new {
@@ -88,6 +87,7 @@ use File::Copy::Recursive qw/ rcopy /;
 use File::Find;
 use File::Path;
 use POSIX;
+use PluginManager::Util;
 
 sub usage {
        <<__EOM__;
index 4c00b11..5350036 100644 (file)
@@ -69,10 +69,10 @@ use vars qw( %Lexicon );
        'Repository\'s URL' => 'このMTで作成したリポジトリのURL',
        'Package has been imported.' => 'プラグインのパッケージがインポートされました。',
        'Distribution has been imported.' => 'ディストリビューションがインポートされました。',
-       'Import package from file.' => 'ファイルからプラグインをインポートする',
-       'Import package from URL.' => 'URLからプラグインをインポートする',
-       'Import distribution from file.' => 'ファイルからディストリビューションをインポートする',
-       'Import distribution from URL.' => 'URLからディストリビューションをインポートする',
+       'Import package from file.' => 'ファイルからプラグインをインポートする (.mpmファイル)',
+       'Import package from URL.' => 'URLからプラグインをインポートする (.mpmファイル)',
+       'Import distribution from file.' => 'ファイルからディストリビューションをインポートする (.mpdファイル)',
+       'Import distribution from URL.' => 'URLからディストリビューションをインポートする (.mpdファイル)',
        'Do Create Package' => 'パッケージを作成',
        'Do Create Distribution' => 'ディストリビューションを作成',
        'Do Create Repository' => 'リポジトリの作成',
index 96a8d34..3431853 100644 (file)
@@ -1,5 +1,8 @@
 package PluginManager::Repository;
 
+use strict;
+use warnings;
+
 sub repository_root {
        my ($create_if_not_exists) = @_;
 
@@ -60,6 +63,8 @@ sub available_components {
                mixicomment
                feedsapplite
                communityactionstreams
+               
+               pluginmanager
        );
        my $defaults_count = scalar(@defaults);
        my %comp = %MT::Components;
index 7b2ecb6..747f71e 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use File::Temp;
 use Exporter;
 
-our @EXPORT = qw(tempdir);
+our @EXPORT = qw(tempdir tempfile);
 use base qw(Exporter);
 
 my $tmp_dir = undef;
index b007cc5..a2f245b 100644 (file)
@@ -9,6 +9,25 @@
        background-image:url(<mt:StaticWebPath />images/status_icons/draft.gif);
 }
 
+.listing th.title {
+       width: 130px;
+}
+.listing th.category {
+       width: 50px;
+}
+.listing th.author {
+       ;
+}
+.listing th.compatiblity {
+       width: 50px;
+}
+.listing th.license {
+       width: 58px;
+}
+.listing th.target {
+       width: 80px;
+}
+
 .listing td.cb {
        vertical-align: middle;
 }
                 <th class="title primary-col"><__trans phrase="Name" /></th>
                                <th class="category"><__trans phrase="Category" /></th>
                 <th class="author"><__trans phrase="Author" /></th>
-                <th class="weblog"><__trans phrase="Compatiblity" /></th>
-                <th class="datetime"><__trans phrase="License" /></th>
-                <th class="view"><__trans phrase="Target" /></th>
+                <th class="compatiblity"><__trans phrase="Compatiblity" /></th>
+                <th class="license"><__trans phrase="License" /></th>
+                <th class="target"><__trans phrase="Target" /></th>
             </tr>
         </thead>
         <tfoot>
                 <th class="title primary-col"><__trans phrase="Name" /></th>
                                <th class="category"><__trans phrase="Category" /></th>
                 <th class="author"><__trans phrase="Author" /></th>
-                <th class="weblog"><__trans phrase="Compatiblity" /></th>
-                <th class="datetime"><__trans phrase="License" /></th>
-                <th class="view"><__trans phrase="Target" /></th>
+                <th class="compatiblity"><__trans phrase="Compatiblity" /></th>
+                <th class="license"><__trans phrase="License" /></th>
+                <th class="target"><__trans phrase="Target" /></th>
             </tr>
         </tfoot>
                <tbody>
        <td class="target"> </td>
 </tr>
 <tr id="package_row_template2">
-       <td class="description" colspan="8"> </td>
+       <td class="description" colspan="7"> </td>
 </tr>
 
 </tbody>
index 7c9b0ee..efd2483 100644 (file)
@@ -32,7 +32,7 @@
 
 <div id="plugin_manager_contents">
 
-<form action="<mt:AdminCGIPath /><mt:AdminScript />" method="post">
+<form action="<mt:CGIPath /><mt:AdminScript />" method="post">
        <input type="hidden" name="__mode" value="pluginmanager" />
        <input type="hidden" name="op" value="do_export" />
 
index 1c5244c..6fed65b 100644 (file)
@@ -89,7 +89,7 @@ jQuery(function() {
 
 <div id="plugin_manager_contents">
 
-<form action="<mt:AdminCGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
+<form action="<mt:CGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
        <input type="hidden" name="__mode" value="pluginmanager" />
        <input type="hidden" name="op" value="do_import" />
        <input type="hidden" name="ftp_password" />
@@ -101,7 +101,7 @@ jQuery(function() {
        </div>
 </form>
 
-<form action="<mt:AdminCGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
+<form action="<mt:CGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
        <input type="hidden" name="__mode" value="pluginmanager" />
        <input type="hidden" name="op" value="do_import" />
        <input type="hidden" name="ftp_password" />
@@ -113,7 +113,7 @@ jQuery(function() {
        </div>
 </form>
 
-<form action="<mt:AdminCGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
+<form action="<mt:CGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
        <input type="hidden" name="__mode" value="pluginmanager" />
        <input type="hidden" name="op" value="do_import" />
        <input type="hidden" name="ftp_password" />
@@ -125,7 +125,7 @@ jQuery(function() {
        </div>
 </form>
 
-<form action="<mt:AdminCGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
+<form action="<mt:CGIPath /><mt:AdminScript />" method="post" enctype="multipart/form-data">
        <input type="hidden" name="__mode" value="pluginmanager" />
        <input type="hidden" name="op" value="do_import" />
        <input type="hidden" name="ftp_password" />
index d83c941..4413ec2 100644 (file)
@@ -24,7 +24,7 @@
 
 <div id="plugin_manager_contents">
 
-<form action="<mt:AdminCGIPath /><mt:AdminScript />" method="post">
+<form action="<mt:CGIPath /><mt:AdminScript />" method="post">
        <input type="hidden" name="__mode" value="pluginmanager" />
        <input type="hidden" name="op" value="create_repository" />
 
index 2bfe370..5f5d95f 100644 (file)
@@ -32,7 +32,7 @@
 
 <div id="plugin_manager_contents">
 
-<form action="<mt:AdminCGIPath /><mt:AdminScript />" method="post">
+<form action="<mt:CGIPath /><mt:AdminScript />" method="post">
        <input type="hidden" name="__mode" value="pluginmanager" />
        <input type="hidden" name="op" value="update_setting" />